Please modify GCC to preprocess *.F90 files like it does *.F files
Charlie Zender
zender@uci.edu
Thu Jul 6 13:55:00 GMT 2000
Hi,
This is not a bug report but rather a (hopefully simple) feature request.
It is often useful to preprocess fortran code with a C-preprocessor.
It would be really great if the preprocessor component of GCC were
modified to treat *.F90 (fortran 90) files exactly as it treats *.F files.
This is not currently the case. In order to generate file
dependencies, for example, I have two IDENTICAL files, f.F and f.F90,
zender@dust:~/f$ gcc -E -M -DLINUX -I. -I/home/zender/include -I/usr/local/include f.F
f.F.o: f.F dbg.com xtr.com /usr/local/include/netcdf.inc
which is somewhat buggy (f.F.o should be f.o) but can be fixed with a
simple filter. On the other hand,
zender@dust:~/f$ gcc -E -M -DLINUX -I. -I/home/zender/include -I/usr/local/include f.F90
gcc: f.F90: linker input file unused since linking not done
does not generate any dependencies. Hopefully this is easy to
fix and just involves processing '.F90' files just like '.F' files.
Please consider making the appropriate modifications to GCC.
Thanks,
Charlie
--
Charlie Zender zender@uci.edu (949) 824-2987/FAX-3256, Department of
Earth System Science, University of California, Irvine CA 92697-3100
More information about the Gcc-bugs
mailing list