This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36309] New: gfrotran and cc1 error
- From: "kih at mail dot nerc-essc dot ac dot uk" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 May 2008 10:06:38 -0000
- Subject: [Bug fortran/36309] New: gfrotran and cc1 error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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