This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

dependency generation incorrect with precompiled headers


Hello;

I can't get dependencies generated with g++ -MD to come out correctly
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

Am I doing something wrong?

Thanks for any help,
Robert

Attachment: gch_bug.tgz
Description: GNU Zip compressed data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]