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

Issue 4672055: [pph] Stream DECL_CHAIN only for VAR/FUNCTION_DECLs that are part of a RECORD_OR_UNION_TYPE (Closed)

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

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -4 lines) Patch
M gcc/cp/pph-streamer-in.c View 2 chunks +5 lines, -2 lines 0 comments Download
M gcc/cp/pph-streamer-out.c View 2 chunks +5 lines, -2 lines 0 comments Download

Messages

Total messages: 5
Gabriel Charette
The fix of streaming DECL_CHAIN in pph for VAR_DECL and FUNCTION_DECL was introduced to fix ...
12 years, 12 months ago (2011-07-09 01:20:50 UTC) #1
Diego Novillo
On Fri, Jul 8, 2011 at 21:20, Gabriel Charette <gchare@google.com> wrote: > 2011-07-08 Gabriel Charette ...
12 years, 11 months ago (2011-07-12 19:21:44 UTC) #2
Gabriel Charette
The reason I put that patch out is that sometimes, when we stream an actual ...
12 years, 11 months ago (2011-07-12 20:43:34 UTC) #3
Diego Novillo
On 11-07-12 16:43 , Gabriel Charette wrote: > Even if this doesn't break tests anymore, ...
12 years, 11 months ago (2011-07-12 22:32:35 UTC) #4
Gabriel Charette
12 years, 11 months ago (2011-07-13 00:17:30 UTC) #5
On Tue, Jul 12, 2011 at 3:32 PM, Diego Novillo <dnovillo@google.com> wrote:
> On 11-07-12 16:43 , Gabriel Charette wrote:
>
>> Even if this doesn't break tests anymore, we probably still want this,
>> no point adding stuff to the pph image that is not needed...
>
> Actually, the reverse is true.  We want to write out the IL exactly as the
> original parser emitted it.  There are things we decide not to write because
> they are better re-generated when the pph image is being read (e.g.,
> function numbers, DECL_RTL), but
>

Well so lto_input_chain, called from pph_in_chain for every single
chain, already reconstructs the DECL_CHAIN on input (DECL_CHAIN is
actually set to NULL before streaming it out each element in the chain
anyways).

The only case where that wasn't true was when we output structs (and
unions I think: we need to add a test for unions), because structs
don't seem to use output chain (I don't have the code in front of me,
but I know they would only output the tree (i.e. the tree was, in that
case, responsible for streaming its DECL_CHAIN)).

I'm surprised it no longer breaks... I'll have a look when I come back
on Friday if it's still a debated issue then.

Gab
Sign in to reply to this message.

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