[v2,03/15] string/memrchr: Add mechanism to set function attributes
Checks
Context |
Check |
Description |
redhat-pt-bot/TryBot-apply_patch |
success
|
Patch applied to master at the time it was sent
|
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_build--master-arm |
success
|
Testing passed
|
linaro-tcwg-bot/tcwg_glibc_check--master-arm |
success
|
Testing passed
|
Commit Message
This patch introduces the __CODEGEN_ATTRIBUTES macro which can be
used to set function attributes when building the code.
Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
---
string/memrchr.c | 5 +++++
1 file changed, 5 insertions(+)
@@ -30,6 +30,11 @@
# define __memrchr MEMRCHR
#endif
+#ifndef __CODEGEN_ATTRIBUTES
+# define __CODEGEN_ATTRIBUTES
+#endif
+
+__CODEGEN_ATTRIBUTES
void *
__memrchr (const void *s, int c_in, size_t n)
{