This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR fortran/9038, a regression in 3.3/3.4 with respect to 3.2.
- From: Neil Booth <neil at daikokuya dot co dot uk>
- To: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 17 Feb 2003 20:47:42 +0000
- Subject: Re: PR fortran/9038, a regression in 3.3/3.4 with respect to 3.2.
- References: <3E514AC6.1080004@moene.indiv.nluug.nl>
Toon Moene wrote:-
> $ g77 -ffixed-line-length-none aap.F
> cc1: warning: unknown register name: line-length-none
>
> However, f771 accepts this compiler option, as you can deduce from the
> silence after the cc1 warning.
>
> The cc1 warning is caused by the fact that source files ending in .F (as
> opposed to .f) require preprocessing by the C preprocessor. As of 3.3
> this is implemented by calling cc1 -E on the source file and passing the
> result on to f771.
>
> However, as shown above, cc1 -E -ffixed-line-length-none will provoke
> the warning message, which is bogus, because cc1 -E has no valid
> interpretation for -ffixed-<anything> anyway - it should just run the
> preprocessor !
>
> How do we get rid of the inappropriate "consumption" of
> -ffixed-<anything> options by cc1 -E ?
The driver passes anything with -f to cc1. You will need to add a dummy
handler to c-opts.c, unfortunately.
Neil.