This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/18428] No preprocessing option -cpp for gfortran
- From: "c dot lemmen at fz-juelich dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Aug 2005 12:29:28 -0000
- Subject: [Bug fortran/18428] No preprocessing option -cpp for gfortran
- References: <20041111132926.18428.c.lemmen@fz-juelich.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From c dot lemmen at fz-juelich dot de 2005-08-12 12:29 -------
Rather than fiddling with -x f95-cpp-input I found that the best option is to
use the gcc specs option to redeclare suffix rules. To enforce preprocessing
for files with suffix .f90 create a file override-specs.h with the content
> cat override-specs.h
.f90:
@f95-cpp-input
>gfortran -specs override-specs.h testcase.f90
Now, testcase.f90 will be preprocessed. This should be reflected in the
documentation (rather than having to dig around the 400 page gcc manual)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18428