This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch, fortran] output of Makefile dependencies
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: Ralf Wildenhues <Ralf dot Wildenhues at gmx dot de>, Kirill Smelkov <kirr at landau dot phys dot spbu dot ru>, Daniel Franke <franke at embl-hamburg dot de>, fortran at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Sat, 2 Oct 2010 08:34:35 -0700
- Subject: Re: [patch, fortran] output of Makefile dependencies
- References: <201006131436.46910.franke@embl-hamburg.de> <20100614182041.GA11547@landau.phys.spbu.ru> <20100628180753.GA29693@landau.phys.spbu.ru> <20101002065729.GE5022@gmx.de> <4CA6E686.4000709@net-b.de>
On Sat, Oct 02, 2010 at 10:00:06AM +0200, Tobias Burnus wrote:
> Hi Ralf,
>
> Ralf Wildenhues wrote:
> >>>On Sun, Jun 13, 2010 at 02:36:46PM +0200, Daniel Franke wrote:
> >>>>Attached patch enables the output of Makefile dependencies.
> >>>>It handles '#include', 'INCLUDE' and module targets/use dependencies
> >>>>alike.
> >[Issue about order due to the required reading of the .mod files]
>
> (I think that's going to be a difficult issue. One probably needs to
> write a separate parser for this, which ignores all the rest and only
> parses USE statements and INCLUDE lines - and handles the CPP
> preprocessor's #include - including dependencies of those
> INCLUDEd/#included files.)
>
It will also have to deal with virtual modules. For
example, iso_binding_c is never written to disk, so the
automatic tool needs to pass over 'use iso_binding_c'.
--
Steve