public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/18452] New: -fno-second-underscore induces warning
@ 2004-11-12 15:15 coudert at clipper dot ens dot fr
  2004-11-12 15:22 ` [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing pinskia at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: coudert at clipper dot ens dot fr @ 2004-11-12 15:15 UTC (permalink / raw)
  To: gcc-bugs

Using -fno-second-underscore with gfortran gives a spurious warning:

$ gfortran -fno-second-underscore -c common.F90 
cc1: warning: command line option "-fno-second-underscore" is valid for F95 but
not for C

-- 
           Summary: -fno-second-underscore induces warning
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: minor
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: coudert at clipper dot ens dot fr
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-gnu-linux


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


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

* [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
@ 2004-11-12 15:22 ` pinskia at gcc dot gnu dot org
  2005-02-22 18:27 ` pinskia at gcc dot gnu dot org
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-11-12 15:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-11-12 15:22 -------
Confirmed, the issue is that we are passing the options to the cc1, the preprocessor (and the C 
compiler).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2004-11-12 15:22:49
               date|                            |
            Summary|-fno-second-underscore      |-fno-second-underscore
                   |induces warning             |induces warning for fortran
                   |                            |that needs preprocessing


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


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

* [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
  2004-11-12 15:22 ` [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing pinskia at gcc dot gnu dot org
@ 2005-02-22 18:27 ` pinskia at gcc dot gnu dot org
  2005-03-08  0:34 ` pinskia at gcc dot gnu dot org
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-22 18:27 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-22 14:06 -------
*** Bug 20138 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at hep dot tu-
                   |                            |darmstadt dot de


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


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

* [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
  2004-11-12 15:22 ` [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing pinskia at gcc dot gnu dot org
  2005-02-22 18:27 ` pinskia at gcc dot gnu dot org
@ 2005-03-08  0:34 ` pinskia at gcc dot gnu dot org
  2005-04-11 11:34 ` fxcoudert at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-03-08  0:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-03-08 00:34 -------
*** Bug 20374 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |tobi at gcc dot gnu dot org


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


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

* [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
                   ` (2 preceding siblings ...)
  2005-03-08  0:34 ` pinskia at gcc dot gnu dot org
@ 2005-04-11 11:34 ` fxcoudert at gcc dot gnu dot org
  2005-04-11 12:05 ` tobi at gcc dot gnu dot org
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: fxcoudert at gcc dot gnu dot org @ 2005-04-11 11:34 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From fxcoudert at gcc dot gnu dot org  2005-04-11 11:33 -------
This one is certainly going to annoy lots of people (when 4.0 is released, I
think we will get bug-reports by the ton).

This should be easy to solve for someone who knows the interactions between GCC
components. How can we ask some help?

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |federico dot carminati at
                   |                            |cern dot ch
   Last reconfirmed|2005-02-11 14:21:27         |2005-04-11 11:33:51
               date|                            |


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


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

* [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
                   ` (3 preceding siblings ...)
  2005-04-11 11:34 ` fxcoudert at gcc dot gnu dot org
@ 2005-04-11 12:05 ` tobi at gcc dot gnu dot org
  2005-04-11 12:47 ` pinskia at gcc dot gnu dot org
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-04-11 12:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-04-11 12:05 -------
It is annoying enough that the preprocessor is invoked via cc1.  Is there a
reason for this, besides that it is the example given in the specfiles?

-- 


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


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

* [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
                   ` (4 preceding siblings ...)
  2005-04-11 12:05 ` tobi at gcc dot gnu dot org
@ 2005-04-11 12:47 ` pinskia at gcc dot gnu dot org
  2005-04-11 12:48 ` pinskia at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-11 12:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-11 12:47 -------
*** Bug 20943 has been marked as a duplicate of this bug. ***

-- 


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


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

* [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
                   ` (5 preceding siblings ...)
  2005-04-11 12:47 ` pinskia at gcc dot gnu dot org
@ 2005-04-11 12:48 ` pinskia at gcc dot gnu dot org
  2005-04-11 17:17 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-11 12:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-11 12:48 -------
(In reply to comment #5)
> It is annoying enough that the preprocessor is invoked via cc1.  Is there a
> reason for this, besides that it is the example given in the specfiles?
Besides that is the only preprocessor any more, there is not a seperate one anymore, it is integrated 
into cc1 now.

-- 


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


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

* [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
                   ` (6 preceding siblings ...)
  2005-04-11 12:48 ` pinskia at gcc dot gnu dot org
@ 2005-04-11 17:17 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
  2005-04-11 17:20 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2005-04-11 17:17 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de  2005-04-11 17:16 -------
Subject: Re:  -fno-second-underscore induces warning for
 fortran that needs preprocessing

pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-11 12:48 -------
> (In reply to comment #5)
> 
>>It is annoying enough that the preprocessor is invoked via cc1.  Is there a
>>reason for this, besides that it is the example given in the specfiles?
> 
> Besides that is the only preprocessor any more, there is not a seperate one anymore, it is integrated 
> into cc1 now.
> 
We're using the traditional preprocessor.  This is a separate executable, cpp,
which is built separately.  So the question remains: why do we run cc1?


-- 


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


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

* [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
                   ` (7 preceding siblings ...)
  2005-04-11 17:17 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2005-04-11 17:20 ` pinskia at gcc dot gnu dot org
  2005-04-11 17:39 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-04-11 17:20 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-11 17:20 -------
(In reply to comment #8)
> We're using the traditional preprocessor.  This is a separate executable, cpp,
> which is built separately.  So the question remains: why do we run cc1?
cpp just calls cc1.
There used to be a cpp0 but that was removed a while back, long before gfortran was added, there was 
code in cc1 which made us not warn about the g77 options, that should be brought back.

-- 


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


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

* [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
                   ` (8 preceding siblings ...)
  2005-04-11 17:20 ` pinskia at gcc dot gnu dot org
@ 2005-04-11 17:39 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
  2005-04-19 18:35 ` tobi at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: Tobias dot Schlueter at physik dot uni-muenchen dot de @ 2005-04-11 17:39 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From Tobias dot Schlueter at physik dot uni-muenchen dot de  2005-04-11 17:39 -------
Subject: Re:  -fno-second-underscore induces warning for
 fortran that needs preprocessing

pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org  2005-04-11 17:20 -------
> (In reply to comment #8)
> 
>>We're using the traditional preprocessor.  This is a separate executable, cpp,
>>which is built separately.  So the question remains: why do we run cc1?
> 
> cpp just calls cc1.
> There used to be a cpp0 but that was removed a while back, long before gfortran was added, there was 
> code in cc1 which made us not warn about the g77 options, that should be brought back.

Oh, ok.  OTOH one could maybe strip out options that are meaningless to
preprocessing before calling cc1.




-- 


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


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

* [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
                   ` (9 preceding siblings ...)
  2005-04-11 17:39 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
@ 2005-04-19 18:35 ` tobi at gcc dot gnu dot org
  2005-08-01 13:16 ` [Bug fortran/18452] Fortran options " pinskia at gcc dot gnu dot org
  2005-08-23 15:07 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: tobi at gcc dot gnu dot org @ 2005-04-19 18:35 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From tobi at gcc dot gnu dot org  2005-04-19 18:34 -------
Probably the right way to solve this is to call the code in c-ppoutput.c from
the Fortran frontend.

-- 


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


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

* [Bug fortran/18452] Fortran options induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
                   ` (10 preceding siblings ...)
  2005-04-19 18:35 ` tobi at gcc dot gnu dot org
@ 2005-08-01 13:16 ` pinskia at gcc dot gnu dot org
  2005-08-23 15:07 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-01 13:16 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-01 13:15 -------
*** Bug 23176 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dir at lanl dot gov


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


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

* [Bug fortran/18452] Fortran options induces warning for fortran that needs preprocessing
  2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
                   ` (11 preceding siblings ...)
  2005-08-01 13:16 ` [Bug fortran/18452] Fortran options " pinskia at gcc dot gnu dot org
@ 2005-08-23 15:07 ` pinskia at gcc dot gnu dot org
  12 siblings, 0 replies; 14+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-23 15:07 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-08-23 14:54 -------
*** Bug 23532 has been marked as a duplicate of this bug. ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Konrad dot Bernloehr at mpi-
                   |                            |hd dot mpg dot de


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


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

end of thread, other threads:[~2005-08-23 14:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-12 15:15 [Bug fortran/18452] New: -fno-second-underscore induces warning coudert at clipper dot ens dot fr
2004-11-12 15:22 ` [Bug fortran/18452] -fno-second-underscore induces warning for fortran that needs preprocessing pinskia at gcc dot gnu dot org
2005-02-22 18:27 ` pinskia at gcc dot gnu dot org
2005-03-08  0:34 ` pinskia at gcc dot gnu dot org
2005-04-11 11:34 ` fxcoudert at gcc dot gnu dot org
2005-04-11 12:05 ` tobi at gcc dot gnu dot org
2005-04-11 12:47 ` pinskia at gcc dot gnu dot org
2005-04-11 12:48 ` pinskia at gcc dot gnu dot org
2005-04-11 17:17 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2005-04-11 17:20 ` pinskia at gcc dot gnu dot org
2005-04-11 17:39 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2005-04-19 18:35 ` tobi at gcc dot gnu dot org
2005-08-01 13:16 ` [Bug fortran/18452] Fortran options " pinskia at gcc dot gnu dot org
2005-08-23 15:07 ` pinskia 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).