This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks
- From: "rbmj at verizon dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 16 May 2012 16:19:02 +0000
- Subject: [Bug target/53378] New: gcc/regs.h hides system header regs.h on vxWorks
- Auto-submitted: auto-generated
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.