This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/53443] New: Bad Macro Definition SUBSUBTARGET_OVERRIDE_OPTIONS in vxworks.h
- From: "rbmj at verizon dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 May 2012 00:09:07 +0000
- Subject: [Bug target/53443] New: Bad Macro Definition SUBSUBTARGET_OVERRIDE_OPTIONS in vxworks.h
- Auto-submitted: auto-generated
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53443
Bug #: 53443
Summary: Bad Macro Definition SUBSUBTARGET_OVERRIDE_OPTIONS in
vxworks.h
Classification: Unclassified
Product: gcc
Version: 4.8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: rbmj@verizon.net
Created attachment 27467
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27467
Proposed Fix (against trunk)
I put the bug down as 4.8, but it's off of the latest trunk (cloned from the
git mirror) - I'm not sure what version that is.
The issue presents itself when compiling with a vxworks target.
SUBSUBTARGET_OVERRIDE_OPTIONS in gcc/config/rs6000/vxworks.h was using the do {
/*...*/ } while (0) idiom as a macro, but did not have the opening do {, thus
the block was ended and the compiler barfed.
A patch is attached that fixes the issue. I just used git format-patch - if
the format is wrong I can use diff.
Also, please tell me if I should email gcc-patches.