This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
PR target/47779 - detecting when compiling libgcc
- From: "Henderson, Stuart" <Stuart dot Henderson at analog dot com>
- To: "gcc-help at gcc dot gnu dot org" <gcc-help at gcc dot gnu dot org>
- Date: Tue, 7 Jun 2011 12:18:58 +0100
- Subject: PR target/47779 - detecting when compiling libgcc
Hi,
In order to fix PR target/47779, an enum in a uClibc header (sys/ucontext.h) must be excluded during the compilation of libgcc to avoid a name clash between it and the various register macros in insn-constants.h.
Is there an established/good practice way to do this?
The only macro I can see that is defined specifically during the compilation of libgcc is IN_LIBGCC2, however this is in the user's namespace so can't be used in the header. Is this by design to prevent the use of the macro in headers?
Any help or advice appreciated,
Stu