This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Print -imacros and -include'd headers if print_deps
- To: Jakub Jelinek <jakub at redhat dot com>
- Subject: Re: [PATCH] Print -imacros and -include'd headers if print_deps
- From: "Zack Weinberg" <zackw at stanford dot edu>
- Date: Tue, 23 Jan 2001 10:03:32 -0800
- Cc: Neil Booth <neil at daikokuya dot demon dot co dot uk>, gcc-patches at gcc dot gnu dot org
- References: <20010123183934.K16050@sunsite.ms.mff.cuni.cz>
On Tue, Jan 23, 2001 at 06:39:34PM +0100, Jakub Jelinek wrote:
> Hi!
>
> Both egcs 1.1.2 and gcc-2.95.2 include files mentioned in -imacros and
> -include during -M, -MM, -MD and -MMD among dependencies.
> I think it would be good if cpplib and tradcpp kept this behaviour
> (currently they print only includes invoked through #include
> directives), e.g. Mozilla gets bitten on this.
> Here is a patch to make that happen, ok to commit?
The concept is fine. I would rather you put the call to deps_add_dep
in do_includes, than added an obscure third argument to
_cpp_read_file.
zw