This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
- From: "fxcoudert at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2008 00:26:04 -0000
- Subject: [Bug fortran/31588] gfortran should be able to output Makefile dependencies with -M* options
- References: <bug-31588-10259@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from fxcoudert at gcc dot gnu dot org 2008-01-31 00:26 -------
(In reply to comment #8)
> As I see it, gfortran never knows it does syntax checking only?!
Exactly.
> What exactly do you mean by "#file headers"? Preprocessor include directives as
> `#include "foo.inc"`?
Yes. These are some of the dependencies, but not all. Fortran include
directives are others (probably not too hard to handle), modules are yet
another one.
> Last but not least: did you intend to use the mkdeps-interface of libcpp or to
> craft something on your own?
gfortran doesn't use libcpp, but it probably should. There's a PR about that,
and I tried to make the switch at some point (I was still a newcomer to
gfortran development at that time, so probably somewhere around 4.1/4.2), but
didn't succeed.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31588