This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug preprocessor/33473] New: GCC does not correctly generate dependencies correctly for precompiled headers
- From: "rswan at signetic dot ca" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 Sep 2007 13:33:26 -0000
- Subject: [Bug preprocessor/33473] New: GCC does not correctly generate dependencies correctly for precompiled headers
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hello;
GCC does not correctly generate dependencies correctly with g++ -MD when
precompiled headers are used. I've attached an example which generates main.d
while compiling main.cpp. main.cpp includes include/bink.h. When the include
path contains the precompiled bink.h.gch (only), main.d does not contain any
dependency on bink.h.gch.
When the compiler includes bink.h, main.d includes the dependency.
I get the same behavior with version 3.4.6 and 4.1.2
> gcc --version
gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
--
Summary: GCC does not correctly generate dependencies correctly
for precompiled headers
Product: gcc
Version: 4.1.2
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: preprocessor
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rswan at signetic dot ca
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33473