This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]