This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [REQUEST] g77 & fortran dependencies

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

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:

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

makedepf90 -

sfmakedepend -

makemake -

Perhaps one of the other three is more suited for your purposes ?

Hope this helps,

Toon Moene - - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Maintainer, GNU Fortran 77:
Join GNU Fortran 95: (under construction)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]