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 driver/17361] New: gcc driver complains about C++ options when assembling


gcc has always ignored C/C++ options when assembling, but apparently some new
checks for explicit C++ options do not follow this principle.

> touch a.s b.S

> gcc-2.95 -Wall -fno-rtti -fomit-frame-pointer -c a.s b.S

> g++-2.95 -Wall -fno-rtti -fomit-frame-pointer -c a.s b.S

> gcc-3.2 -Wall -fno-rtti -fomit-frame-pointer -c a.s b.S

> g++-3.2 -Wall -fno-rtti -fomit-frame-pointer -c a.s b.S

> gcc-3.4 -Wall -fno-rtti -fomit-frame-pointer -c a.s b.S
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C

> g++-3.4 -Wall -fno-rtti -fomit-frame-pointer -c a.s b.S
cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C

-- 
           Summary: gcc driver complains about C++ options when assembling
           Product: gcc
           Version: 3.4.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: driver
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: markus at oberhumer dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17361


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