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: [email protected]
ReportedBy: [email protected]
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.