PR fortran/9038, a regression in 3.3/3.4 with respect to 3.2.
Neil Booth
neil@daikokuya.co.uk
Mon Feb 17 22:25:00 GMT 2003
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.
More information about the Gcc
mailing list