This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [REQUEST] g77 & fortran dependencies
- To: Art Haas <arthur dot haas at westerngeco dot com>
- Subject: Re: [REQUEST] g77 & fortran dependencies
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Fri, 05 Jan 2001 22:26:07 +0100
- CC: gcc at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <Pine.SOL.4.02A.10101051035020.3440-100000@uhura.wg.waii.com>
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)