PR fortran/9038, a regression in 3.3/3.4 with respect to 3.2.

Toon Moene toon@moene.indiv.nluug.nl
Mon Feb 17 22:12:00 GMT 2003


L.S.,

[ cc'd to Neil because he's the cc -E expert ]

PR fortran/9038 is about the following:

Given

$ cat aap.F  # Note uppercase .F
       SUBROUTINE AAP
       END

we get the following when compiling:

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

Any insight appreciated.

Thanks in advance,

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://gcc-g95.sourceforge.net/ (under construction)



More information about the Gcc mailing list