[Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks

rbmj at verizon dot net gcc-bugzilla@gcc.gnu.org
Wed May 16 16:22:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53378

             Bug #: 53378
           Summary: gcc/regs.h hides system header regs.h on vxWorks
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: target
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: rbmj@verizon.net


This may be not-a-bug or wont-fix, but when I'm compiling gcc 4.7.0 on vxWorks,
libgcc/config/vxlib.c #includes taskLib.h.  This vxWorks header then includes
regs.h, another vxWorks system header.  However, at compile time, gcc/regs.h is
included instead.  This conflict causes a multitude of compilation errors.

The current workaround is to go into taskLib.h and change #include <regs.h> to
#include "./regs.h".  Not pretty, but it works.



More information about the Gcc-bugs mailing list