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

Issue 4631072: [pph] Stream chain of struct fields (Closed)

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

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -7 lines) Patch
M gcc/cp/pph-streamer-in.c View 2 chunks +3 lines, -1 line 0 comments Download
M gcc/cp/pph-streamer-out.c View 2 chunks +3 lines, -1 line 0 comments Download
M gcc/testsuite/g++.dg/pph/x1functions.cc View 1 chunk +1 line, -2 lines 0 comments Download
M gcc/testsuite/g++.dg/pph/x1variables.cc View 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 3
Gabriel Charette
We were only streaming the first field of every struct. Struct fields have a chain ...
12 years, 11 months ago (2011-06-24 23:13:23 UTC) #1
Gabriel Charette
Fixes two pph BOGUS bugs which now result in an asm diff. Tested with bootstrap ...
12 years, 11 months ago (2011-06-24 23:14:44 UTC) #2
Diego Novillo
12 years, 11 months ago (2011-06-27 14:37:39 UTC) #3
On Fri, Jun 24, 2011 at 19:13, Gabriel Charette <gchare@google.com> wrote:
> We were only streaming the first field of every struct. Struct fields have a
chain link to the next field, thus we need to stream the DECL_CHAIN of every
field as well recursively.
>
> I limited this to VAR_DECL and FUNCTION_DECL for now (which fixes all of our
current bugs in regards to the struct fields issues), are there any other DECLs
that can potentially be fields of a struct?

FIELD_DECLs are the natural members of structs.  But those are handled
by generic streaming.  Also needed for PARM_DECLs (already handled as
well).  VAR_DECLs and FUNCTION_DECLs were the only ones missing.

> Syntax-wise: Is it ok to play this 'case' fall through trick with VAR_DECL or
should I make a
> separate case entry with it's own break?

Cleaner to just distinguish them inside the main group.  I've tweaked
it and committed to the branch.

We are still missing some link attributes.  The code compiles but does
not link.  I will look into that today.


Diego.
Sign in to reply to this message.

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