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: unassig...@gcc.gnu.org
        ReportedBy: r...@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.

Reply via email to