This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/40583] automatic preprocessing for .F90 or .F95 files fails with cc1 error (output filename specified twice)
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Jun 2009 12:27:05 -0000
- Subject: [Bug fortran/40583] automatic preprocessing for .F90 or .F95 files fails with cc1 error (output filename specified twice)
- References: <bug-40583-15830@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2009-06-29 12:27 -------
Hmm, the following works here on x86_64-openSUSE (the -4.x are the ones of
openSUSE; the last one is today's vanilla trunk build):
gcc-4.2 -c aa.F90; gcc-4.3 -c aa.F90; gcc-4.4 -c aa.F90; gcc -c aa.F90
gfortran-4.2 aa.F90; gfortran-4.3 aa.F90; gfortran-4.4 aa.F90; gfortran aa.F90
(ditto with .F95 instead of .F90)
> Anyhow: The automatic preprocessing as specified by the documentation, for
> files named with capital "F" in the suffix, does not work.
If you have a case-sensitive filesystem, it should work!
> It works fine using the two-step procedure:
>
> shell$ cpp -xf95-cpp-input testf95.F95 > testf95.f95
> shell$ LANG=C gfortran -xf95 -o testf95 testf95.f95
It should also work using:
gfortran -xf95-cpp-input -o testf95 testf95.F95
^^^^^^^^^^^^^^^
where -xf95-cpp-input can be replaced by "-cpp" in GCC/gfortran 4.4.x/4.5.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40583