[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 13:23:00 GMT 2005
------- Additional Comments From c dot lemmen at fz-juelich dot de 2005-08-12 13:22 -------
Subject: Re: No preprocessing option -cpp for gfortran
pinskia at gcc dot gnu dot org wrote:
> ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-12 12:32 -------
> (In reply to comment #3)
>
>>Now, testcase.f90 will be preprocessed. This should be reflected in the
>>documentation (rather than having to dig around the 400 page gcc manual)
>
>
> Why, specs files are not for the light hearted. Really they are designed for GCC developers can quickly
> test some spec changed without recompiling the whole compiler.
>
1) I agree in principle, a user should not have to revert to using spec
files.
2) However, a user *should* be able to tell the compiler that he/she
wishes files with a certain extension to be preprocessed.
Lots of other compilers (free and non-free) give the user this choice,
below just four examples
* pgf90 -Mpreprocess
* nagf90 -fpp
* g95 -cpp
* xlf90 -qsuffix=cpp=f90
The -x option in gfortran is not really a good replacement as described
in my comment #2.
CL
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18428
More information about the Gcc-bugs
mailing list