public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/36309]  New: gfrotran and cc1 error
@ 2008-05-23 10:07 kih at mail dot nerc-essc dot ac dot uk
  2008-05-23 16:39 ` [Bug fortran/36309] " rguenth at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: kih at mail dot nerc-essc dot ac dot uk @ 2008-05-23 10:07 UTC (permalink / raw)
  To: gcc-bugs

When invoking gfortran to compile some fortran code with C preprocessor
commands in it and using the .F file extension to ensure that the code is
passed though the C pre-processor and error occurs with cc1

The command is:

gfortran -c -g -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-underscoring
-DNOUNIRAS -DNONAMELISTS -I../f77_param filterpl.F

and the error is:

cc1: error: unrecognized command line option "-fno-underscoring"

This error did not occur when using an older gfortran version. cpp won't
recognise "-fno-underscoring" but the old gfortran presumably did not pass
this to cpp whereas the newer version does.

I have a workround which involves invoking cpp seperately on the file excluding
the "-fno-underscoring" and the compiling the output from this but it would be
good to have the old functionality back.

Kevin


-- 
           Summary: gfrotran and cc1 error
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: kih at mail dot nerc-essc dot ac dot uk


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


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

end of thread, other threads:[~2008-05-28  8:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-23 10:07 [Bug fortran/36309] New: gfrotran and cc1 error kih at mail dot nerc-essc dot ac dot uk
2008-05-23 16:39 ` [Bug fortran/36309] " rguenth at gcc dot gnu dot org
2008-05-23 17:50 ` burnus at gcc dot gnu dot org
2008-05-23 20:46 ` [Bug fortran/36309] gfortran " kih at mail dot nerc-essc dot ac dot uk
2008-05-23 20:53 ` kih at mail dot nerc-essc dot ac dot uk
2008-05-26 15:45 ` fxcoudert at gcc dot gnu dot org
2008-05-27 19:58 ` kih at mail dot nerc-essc dot ac dot uk
2008-05-28  8:28 ` 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).