This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/17361] New: gcc driver complains about C++ options when assembling
- From: "markus at oberhumer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 8 Sep 2004 21:33:39 -0000
- Subject: [Bug driver/17361] New: gcc driver complains about C++ options when assembling
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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