Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1562)

Issue 4591061: [pph] Do not emit PCH if generating PPH (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 10 months ago by Diego Novillo
Modified:
13 years, 10 months ago
Reviewers:
CC:
Gabriel Charette, Lawrence Crowl, gcc-patches_gcc.gnu.org
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : Updated documentation, specs and testsuite #

Unified diffs Side-by-side diffs Delta from patch set Stats (+56 lines, -13 lines) Patch
M gcc/c-family/c.opt View 1 3 chunks +9 lines, -2 lines 0 comments Download
M gcc/c-family/c-opts.c View 1 1 chunk +5 lines, -7 lines 0 comments Download
M gcc/cp/lang-specs.h View 1 1 chunk +3 lines, -2 lines 0 comments Download
gcc/doc/invoke.texi View 1 2 chunks +37 lines, -0 lines 0 comments Download
M gcc/testsuite/lib/dg-pph.exp View 1 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 3
Diego Novillo
We were trying to generate PCH and PPH information at the same time. We never ...
13 years, 10 months ago (2011-06-09 18:49:59 UTC) #1
Diego Novillo
On Thu, Jun 9, 2011 at 11:49, Diego Novillo <dnovillo@google.com> wrote: > > We were ...
13 years, 10 months ago (2011-06-10 15:47:36 UTC) #2
Gabriel Charette
13 years, 10 months ago (2011-06-10 17:20:19 UTC) #3
LGTM

On Fri, Jun 10, 2011 at 8:47 AM, Diego Novillo <dnovillo@google.com> wrote:

> 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.
>
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b