This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/18980] New: -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:45:26 -0000
- Subject: [Bug pch/18980] New: -MD doesn't report compiled headers as dependencies when using pch ?
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
It seems that -MD doesn't report compiled headers as dependencies when using pch
(gcc 3.4.2):
$ rm *
$ echo '#define TEST' > test.h
$ echo '#include "test.h"' > test.c
$ gcc -MD -MF test.h.d -c test.h
$ cat test.h.d
test.o: test.h
$ echo '#error not using pch' > test.h
$ gcc -MD -MF test.c.d -c test.c
$ cat test.c.d
test.o: test.c
^ missing test.h!
$ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-linux-gnu/3.4.2/specs
Configured with: /var/tmp/portage/gcc-3.4.2-r1/work/gcc-3.4.2/configure
--enable-version-specific-runtime-libs --prefix=/usr
--bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.4
--includedir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include
--datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4
--mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/man
--infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.4/info
--with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/3.4.2/include/g++-v3
--host=i686-pc-linux-gnu --enable-nls --without-included-gettext
--enable-__cxa_atexit --enable-clocale=gnu --enable-shared --with-system-zlib
--disable-checking --disable-werror --disable-libunwind-exceptions --with-gnu-ld
--enable-threads=posix --disable-multilib --enable-languages=c,c++,objc,java
Thread model: posix
gcc version 3.4.2 (Gentoo Linux 3.4.2-r1, ssp-3.4.1-1, pie-8.7.6.5)
--
Summary: -MD doesn't report compiled headers as dependencies when
using pch ?
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: pch
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: trick at icculus dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18980