aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-10-19 17:43:39 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-10-19 17:43:39 -0700
commit2de165ff2242093aac57d468aad3bd86d8cef0c7 (patch)
tree2eedd47e2a582cb2d6476b3f8f622ef3d3fde838
parent610d475d06b1627ceb85d9bdfac75c11c9c45b00 (diff)
downloadklibc-2de165ff2242093aac57d468aad3bd86d8cef0c7.tar.gz
[klibc] Add __attribute_used__; needed for ia64 kernel headersklibc-1.4.30
The ia64 kernel headers apparently use __attribute_used__ outside __KERNEL__; make sure <klibc/compiler.h> provides it. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
-rw-r--r--usr/include/klibc/compiler.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/usr/include/klibc/compiler.h b/usr/include/klibc/compiler.h
index 893f8a99bb3f6..d5662346b10e8 100644
--- a/usr/include/klibc/compiler.h
+++ b/usr/include/klibc/compiler.h
@@ -116,6 +116,13 @@
# define __bitwise
#endif
+/* Shut up unused warnings */
+#ifdef __GNUC__
+# define __attribute_used__ __attribute__((used))
+#else
+# define __attribute_used__
+#endif
+
/* Compiler pragma to make an alias symbol */
#define __ALIAS(__t, __f, __p, __a) \
__t __f __p __attribute__((weak, alias(#__a)));