This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/18980] -MD doesn't report compiled headers as dependencies when using pch ?
- From: "trick at icculus dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Dec 2004 12:52:35 -0000
- Subject: [Bug pch/18980] -MD doesn't report compiled headers as dependencies when using pch ?
- References: <20041214124520.18980.trick@icculus.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From trick at icculus dot org 2004-12-14 12:52 -------
This only affects precompiled headers. Continuing from before:
$ echo '#define TEST2' > test2.h
$ echo '#include "test2.h"' >> test.c
$ cat test.c
#include "test.h"
#include "test2.h"
$ gcc -MD -MF test.c.d -c test.c
$ cat test.c.d
test.o: test.c test2.h
^ missing test.h (since test.h.gch exists and is used), but not test2.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18980