diff options
author | H. Peter Anvin <hpa@zytor.com> | 2006-10-19 17:43:39 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2006-10-19 17:43:39 -0700 |
commit | 2de165ff2242093aac57d468aad3bd86d8cef0c7 (patch) | |
tree | 2eedd47e2a582cb2d6476b3f8f622ef3d3fde838 | |
parent | 610d475d06b1627ceb85d9bdfac75c11c9c45b00 (diff) | |
download | klibc-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.h | 7 |
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))); |