[REQUEST] g77 & fortran dependencies
Toon Moene
toon@moene.indiv.nluug.nl
Fri Jan 5 14:14:00 GMT 2001
Art Haas wrote:
> Over on the gcc-patches mailing list there have been a number of recent
> patches dealing with the preprocessor and C/C++ dependencies. I'd like to
> suggest that, if possible, a change be made to handle `INCLUDE' statements
> in fortran code so that g77 could provide similiar dependency information.
> At present, this sort of dependency info can only be obtained if the
> C-like `#include' statements.
Note that currently, the preprocessor for C/C++ is *integrated* with the
frontend - it isn't a separate program anymore. Hence, its features
*cannot* be transported to the preprocessing of Fortran source, because
g77 uses "tradcpp", which is a very old version of the original GNU C
preprocessor.
The reason for this difference is that the implementors of the
integrated C/C++ preprocessor weren't able to write one that correctly
preserved Fortran syntax while preprocessing.
> It would be nice to be able to do this directly with the fortran compiler
> and not rely on external programs (such as sfmakedepend which is mentioned
> in the info pages).
Is anything specifically wrong with sfmakedepend ? A mail to the GNU
Fortran 95 mailing list of last December tabulated four dependency
generating programs:
<QUOTE>
>
> Has anyone come forward on a tool to generate makefiles or just the
> order of compilation? Someone said something about such tools being
> available, but there no pointers to them.
>
These are all the ones I know about.
mkmf - http://www.gfdl.gov/~vb/mkmf.html
makedepf90 - http://www.helsinki.fi/~eedelman/makedepf90.html
sfmakedepend - http://marine.rutgers.edu/po/perl.html
makemake - http://www.fortran.com/makemake.perl
</QUOTE>
Perhaps one of the other three is more suited for your purposes ?
Hope this helps,
--
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
Join GNU Fortran 95: http://g95.sourceforge.net/ (under construction)
More information about the Gcc
mailing list