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

Re: [pph] Do not emit PCH if generating PPH (issue4591061)


On Thu, Jun 9, 2011 at 11:49, Diego Novillo <dnovillo@google.com> wrote:
>
> We were trying to generate PCH and PPH information at the same time.
> We never noticed because PPH is generated after PCH, so we were just
> clobbering over the previous dump.
>
> Found it by accident while debugging a GC ICE. ÂThis should make
> testing slightly faster.
>
> Committed to the branch.

This version had problems and it was still abusing the PCH options
from specs.  The problem is that when compiling header files
separately, the compiler assumes that we want to generate PCH files.

In the long term, I think we will want to replace PCH with PPH, but
until then I'm adding a new flag -fpph-gen to distinguish the PCH from
the PPH generation.  So, when compiling a header file, if you want a
PPH image, you need to:

$ gcc -fpph-gen foo.h

This generate foo.pph instead of foo.gch.

The new patch also adds documentation on the three user-facing flags
used for pph.

Tested on x86_64.


Diego.

Attachment: issue4591061_3001.diff.txt
Description: Text document


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