[Bug fortran/18428] No preprocessing option -cpp for gfortran

c dot lemmen at fz-juelich dot de gcc-bugzilla@gcc.gnu.org
Fri Aug 12 12:29:00 GMT 2005


------- 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



More information about the Gcc-bugs mailing list