[patch, fortran] output of Makefile dependencies

Daniel Franke franke.daniel@gmail.com
Sun Jun 13 15:34:00 GMT 2010


On Sunday 13 June 2010 16:03:55 Daniel Franke wrote:
> On Sunday 13 June 2010 15:47:52 Tobias Burnus wrote:
[texi updates]
> Shall have a look.

Done.


> > c) The patch does not work properly.
[...]
> $ gfortran-svn -cpp -I./x -MM other.f90
> other.o iso_c_env.mod: other.f90 other.inc iso_c_env.mod
> 
> However, the path component on other.inc is missing.

Minor modification in scanner.c - updated patch gives:

$ gfortran-svn -cpp -I./x -M other.f90
other.o iso_c_env.mod: other.f90 x/other.inc iso_c_binding.mod \
 iso_c_env.mod \
 /home/daniel/i686-pc-linux-gnu/gcc/lib/gcc/i686-pc-linux-
gnu/4.6.0/finclude/omp_lib.mod \
 /home/daniel/i686-pc-linux-gnu/gcc/lib/gcc/i686-pc-linux-
gnu/4.6.0/finclude/omp_lib_kinds.mod

$ gfortran-svn -cpp -I./x -MM other.f90
other.o iso_c_env.mod: other.f90 x/other.inc iso_c_env.mod


> Also strange, the iso_c_env.mod depends on itself. Not ideal, I assume.

Make complains:

$ make
make: Circular iso_c_env.mod <- iso_c_env.mod dependency dropped.
make: Nothing to be done for `other.o'.


This should probably be fixed in libcpp, e.g. if a dependency shall be added 
that is also a target, ignore the dependency. Is there any legal case where 
this feature may be necessary?

Cheers.

	Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mkdeps-2.diff
Type: text/x-patch
Size: 12535 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100613/717f78df/attachment.bin>


More information about the Gcc-patches mailing list