This is the mail archive of the gcc-bugs@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]

[Bug pch/12112] New: Putting PCH files in a directory completely broken


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.


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