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/53443] New: Bad Macro Definition SUBSUBTARGET_OVERRIDE_OPTIONS in vxworks.h


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.


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