public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug driver/17361] New: gcc driver complains about C++ options when assembling
@ 2004-09-08 21:33 markus at oberhumer dot com
  2004-09-09  3:13 ` [Bug other/17361] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: markus at oberhumer dot com @ 2004-09-08 21:33 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/17361] [3.3/3.4/3.5 Regression] gcc driver complains about C++ options when assembling
  2004-09-08 21:33 [Bug driver/17361] New: gcc driver complains about C++ options when assembling markus at oberhumer dot com
@ 2004-09-09  3:13 ` pinskia at gcc dot gnu dot org
  2004-10-11 17:13 ` [Bug other/17361] [3.3/3.4/4.0 " pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-09-09  3:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-09-09 03:13 -------
Confirmed.
The problem is that cpp0 is no longer the preprocessor and that cc1 is the preprocessor for ASM.  
Maybe we should turn off the warning if -lang-asm is passed to cc1.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
          Component|driver                      |other
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
      Known to fail|                            |3.3.3 3.4.0 3.5.0
      Known to work|                            |3.2.3
   Last reconfirmed|0000-00-00 00:00:00         |2004-09-09 03:13:56
               date|                            |
            Summary|gcc driver complains about  |[3.3/3.4/3.5 Regression] gcc
                   |C++ options when assembling |driver complains about C++
                   |                            |options when assembling
   Target Milestone|---                         |3.4.3


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/17361] [3.3/3.4/4.0 Regression] gcc driver complains about C++ options when assembling
  2004-09-08 21:33 [Bug driver/17361] New: gcc driver complains about C++ options when assembling markus at oberhumer dot com
  2004-09-09  3:13 ` [Bug other/17361] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
@ 2004-10-11 17:13 ` pinskia at gcc dot gnu dot org
  2004-10-11 22:57 ` cvs-commit at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-11 17:13 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-11 17:13 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2004-10/msg00915.html>.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |patch
      Known to fail|3.3.3 3.4.0 4.0             |3.3.3 3.4.0 4.0.0


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/17361] [3.3/3.4/4.0 Regression] gcc driver complains about C++ options when assembling
  2004-09-08 21:33 [Bug driver/17361] New: gcc driver complains about C++ options when assembling markus at oberhumer dot com
  2004-09-09  3:13 ` [Bug other/17361] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
  2004-10-11 17:13 ` [Bug other/17361] [3.3/3.4/4.0 " pinskia at gcc dot gnu dot org
@ 2004-10-11 22:57 ` cvs-commit at gcc dot gnu dot org
  2004-10-11 23:02 ` [Bug other/17361] [3.3/3.4 " pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-11 22:57 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-11 22:57 -------
Subject: Bug 17361

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	sayle@gcc.gnu.org	2004-10-11 22:57:55

Modified files:
	gcc            : ChangeLog c-opts.c 

Log message:
	PR other/17361
	* c-opts.c (permit_fortran_options): Delete/obsolete global variable.
	(c_common_init_options): Remove #ifdef CL_F77 code.  Scan command
	line options for "-lang-asm" and if found allow any of the C-family
	front-end options.
	(c_common_handle_option): Remove last use of permit_fortran_options.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.5838&r2=2.5839
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-opts.c.diff?cvsroot=gcc&r1=1.128&r2=1.129



-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/17361] [3.3/3.4 Regression] gcc driver complains about C++ options when assembling
  2004-09-08 21:33 [Bug driver/17361] New: gcc driver complains about C++ options when assembling markus at oberhumer dot com
                   ` (2 preceding siblings ...)
  2004-10-11 22:57 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-11 23:02 ` pinskia at gcc dot gnu dot org
  2004-10-14 21:43 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-11 23:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-10-11 23:02 -------
Fixed on the mainline (yes this will be fixed other places too).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|3.3.3 3.4.0 4.0.0           |3.3.3 3.4.0
      Known to work|3.2.3                       |3.2.3 4.0.0
            Summary|[3.3/3.4/4.0 Regression] gcc|[3.3/3.4 Regression] gcc
                   |driver complains about C++  |driver complains about C++
                   |options when assembling     |options when assembling


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/17361] [3.3/3.4 Regression] gcc driver complains about C++ options when assembling
  2004-09-08 21:33 [Bug driver/17361] New: gcc driver complains about C++ options when assembling markus at oberhumer dot com
                   ` (3 preceding siblings ...)
  2004-10-11 23:02 ` [Bug other/17361] [3.3/3.4 " pinskia at gcc dot gnu dot org
@ 2004-10-14 21:43 ` cvs-commit at gcc dot gnu dot org
  2004-10-14 21:46 ` [Bug other/17361] [3.3 " pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2004-10-14 21:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2004-10-14 21:43 -------
Subject: Bug 17361

CVSROOT:	/cvs/gcc
Module name:	gcc
Branch: 	gcc-3_4-branch
Changes by:	sayle@gcc.gnu.org	2004-10-14 21:43:35

Modified files:
	gcc            : ChangeLog c-opts.c 

Log message:
	PR other/17361
	* c-opts.c (c_common_init_options): Scan command line options for
	"-lang-asm" and if found allow any of the C-family front-end options.
	Likewise, scan all command line options for g77's -traditional-cpp.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=2.2326.2.660&r2=2.2326.2.661
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/c-opts.c.diff?cvsroot=gcc&only_with_tag=gcc-3_4-branch&r1=1.96.4.7&r2=1.96.4.8



-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/17361] [3.3 Regression] gcc driver complains about C++ options when assembling
  2004-09-08 21:33 [Bug driver/17361] New: gcc driver complains about C++ options when assembling markus at oberhumer dot com
                   ` (4 preceding siblings ...)
  2004-10-14 21:43 ` cvs-commit at gcc dot gnu dot org
@ 2004-10-14 21:46 ` pinskia at gcc dot gnu dot org
  2005-01-21  2:02 ` markus at oberhumer dot com
  2005-04-30 13:54 ` gdr at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-10-14 21:46 UTC (permalink / raw)
  To: gcc-bugs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gdr at gcc dot gnu dot org
      Known to work|3.2.3 4.0.0                 |3.2.3 4.0.0 3.4.3
            Summary|[3.3/3.4 Regression] gcc    |[3.3 Regression] gcc driver
                   |driver complains about C++  |complains about C++ options
                   |options when assembling     |when assembling
   Target Milestone|3.4.3                       |3.3.6


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/17361] [3.3 Regression] gcc driver complains about C++ options when assembling
  2004-09-08 21:33 [Bug driver/17361] New: gcc driver complains about C++ options when assembling markus at oberhumer dot com
                   ` (5 preceding siblings ...)
  2004-10-14 21:46 ` [Bug other/17361] [3.3 " pinskia at gcc dot gnu dot org
@ 2005-01-21  2:02 ` markus at oberhumer dot com
  2005-04-30 13:54 ` gdr at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: markus at oberhumer dot com @ 2005-01-21  2:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From markus at oberhumer dot com  2005-01-21 02:02 -------
This seems to be fixed for 3.4 and 4.0 now, so the bug should be closed.


-- 


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Bug other/17361] [3.3 Regression] gcc driver complains about C++ options when assembling
  2004-09-08 21:33 [Bug driver/17361] New: gcc driver complains about C++ options when assembling markus at oberhumer dot com
                   ` (6 preceding siblings ...)
  2005-01-21  2:02 ` markus at oberhumer dot com
@ 2005-04-30 13:54 ` gdr at gcc dot gnu dot org
  7 siblings, 0 replies; 9+ messages in thread
From: gdr at gcc dot gnu dot org @ 2005-04-30 13:54 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From gdr at gcc dot gnu dot org  2005-04-30 13:54 -------
As per comment #6

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|3.3.6                       |3.4.3


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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-04-30 13:54 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-08 21:33 [Bug driver/17361] New: gcc driver complains about C++ options when assembling markus at oberhumer dot com
2004-09-09  3:13 ` [Bug other/17361] [3.3/3.4/3.5 Regression] " pinskia at gcc dot gnu dot org
2004-10-11 17:13 ` [Bug other/17361] [3.3/3.4/4.0 " pinskia at gcc dot gnu dot org
2004-10-11 22:57 ` cvs-commit at gcc dot gnu dot org
2004-10-11 23:02 ` [Bug other/17361] [3.3/3.4 " pinskia at gcc dot gnu dot org
2004-10-14 21:43 ` cvs-commit at gcc dot gnu dot org
2004-10-14 21:46 ` [Bug other/17361] [3.3 " pinskia at gcc dot gnu dot org
2005-01-21  2:02 ` markus at oberhumer dot com
2005-04-30 13:54 ` gdr at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).