Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36494 - [[ headers ]] /usr/include/linux/compiler-gcc2.h should be touched up
Summary: [[ headers ]] /usr/include/linux/compiler-gcc2.h should be touched up
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-25 14:53 UTC by SpanKY
Modified: 2003-12-26 03:11 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2003-12-25 14:53:02 UTC
often times i'll see this warning:
In file included from /usr/include/linux/compiler.h:18,
                 from /usr/include/asm/sigcontext.h:4,
                 from /usr/include/bits/sigcontext.h:28,
                 from /usr/include/signal.h:307,
                 from /usr/include/sys/wait.h:30,
                 from scripts/kconfig/mconf.c:10:
/usr/include/linux/compiler-gcc2.h:15: warning: `__attribute_used__' redefined
/usr/include/sys/cdefs.h:169: warning: this is the location of the previous definition

usually it's not a problem but sometimes configure scripts choke on it
the fix is simple:
--- /usr/src/linux/include/linux/compiler-gcc2.h        2003-12-25 17:14:06.000000000 -0500
+++ /usr/include/linux/compiler-gcc2.h  2003-12-25 17:52:26.000000000 -0500
@@ -12,7 +12,9 @@
 # define __builtin_expect(x, expected_value) (x)
 #endif
 
+#ifndef __attribute_used__
 #define __attribute_used__     __attribute__((__unused__))
+#endif
 
 /*
  * The attribute `pure' is not implemented in GCC versions earlier
Comment 1 Tim Yamin (RETIRED) gentoo-dev 2003-12-26 03:11:46 UTC
Done; in CVS.