This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug pch/12112] New: Putting PCH files in a directory completely broken
- From: "pme at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Aug 2003 23:02:23 -0000
- Subject: [Bug pch/12112] New: Putting PCH files in a directory completely broken
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12112
Summary: Putting PCH files in a directory completely broken
Product: gcc
Version: 3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: pch
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pme at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
The manual states
If you need to precompile the same header file for different languages, targets,
or compiler options, you can instead make a directory named like all.h.gch, and
put each precompiled header in the directory. (It doesn't matter what you call
the files in the directory, every precompiled header in the directory will be
considered.) The first precompiled header encountered in the directory that is
valid for this compilation will be used; they're searched in no particular order.
This doesn't work. The bug has been independently reported twice:
http://gcc.gnu.org/ml/gcc/2003-08/msg00710.html
http://gcc.gnu.org/ml/gcc-patches/2003-08/msg01434.html
with identical suggested fixes.