This is the mail archive of the gcc-bugs@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]

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


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.


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