This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Please modify GCC to preprocess *.F90 files like it does *.F files
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Please modify GCC to preprocess *.F90 files like it does *.F files
- From: Charlie Zender <zender at uci dot edu>
- Date: Thu, 06 Jul 2000 14:00:20 -0700
- Organization: University of California at Irvine
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