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

Issue 4486042: [pph] Save keyed_classes, unemitted_tinfo_decls, TYPE_BINFO (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by Lawrence Crowl
Modified:
11 years, 11 months ago
Reviewers:
Diego Novillo
CC:
gcc-patches_gcc.gnu.org
Base URL:
svn+ssh://gcc.gnu.org/svn/gcc/branches/pph/
Visibility:
Public.

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -4 lines) Patch
M gcc/cp/name-lookup.c View 1 chunk +6 lines, -0 lines 0 comments Download
M gcc/cp/pph.c View 2 chunks +6 lines, -0 lines 0 comments Download
M gcc/cp/pph-streamer.h View 5 chunks +75 lines, -0 lines 4 comments Download
M gcc/cp/pph-streamer-in.c View 2 chunks +10 lines, -2 lines 0 comments Download
M gcc/cp/pph-streamer-out.c View 2 chunks +10 lines, -2 lines 0 comments Download

Messages

Total messages: 3
Lawrence Crowl
Save and restored globals keyed_classes and unemitted_tinfo_decls. Save and restore member TYPE_BINFO. Index: gcc/cp/ChangeLog.pph 2011-05-05 ...
13 years ago (2011-05-05 21:30:05 UTC) #1
Diego Novillo
http://codereview.appspot.com/4486042/diff/1/gcc/cp/pph-streamer.h File gcc/cp/pph-streamer.h (right): http://codereview.appspot.com/4486042/diff/1/gcc/cp/pph-streamer.h#newcode152 gcc/cp/pph-streamer.h:152: for (i = 0; i < c; ++i) +#if ...
13 years ago (2011-05-05 21:45:15 UTC) #2
Lawrence Crowl
13 years ago (2011-05-05 21:59:43 UTC) #3
On 5/5/11, dnovillo@google.com <dnovillo@google.com> wrote:
> http://codereview.appspot.com/4486042/diff/1/gcc/cp/pph-streamer.h
> File gcc/cp/pph-streamer.h (right):
>
> http://codereview.appspot.com/4486042/diff/1/gcc/cp/pph-streamer.h#newcode152
> gcc/cp/pph-streamer.h:152: for (i = 0; i < c; ++i)
> +#if 0
> +static inline void
> +pph_output_tree_array (pph_stream *stream, tree *a, size_t c, bool
> ref_p)
> +{
> +  size_t i;
>
> Why are you adding this #if0 code?  No apparent reason given that we
> have pph_stream_write_tree_vec.
>
> http://codereview.appspot.com/4486042/diff/1/gcc/cp/pph-streamer.h#newcode338
> gcc/cp/pph-streamer.h:338: size_t i;
> +static inline void
> +pph_input_tree_array (pph_stream *stream, tree *a, size_t c)
> +{
> +  size_t i;
>
> Likewise.

The object I thought I needed was an array, not a vec.  I decided
that writing that array was not helpful, and disabled the code.
I archived the tool here in case I need later.

> http://codereview.appspot.com/4486042/diff/1/gcc/cp/pph-streamer.h#newcode245
> gcc/cp/pph-streamer.h:245: tree t;
> #if 0
> +static inline void
> +pph_output_tree_VEC (pph_stream *stream, VEC(tree,gc) *v, bool ref_p)
> +{
> +  tree t;
>
> Another one of the same?
>
> http://codereview.appspot.com/4486042/diff/1/gcc/cp/pph-streamer.h#newcode355
> gcc/cp/pph-streamer.h:355: size_t i;
> +#if 0
> +static inline void
> +pph_input_tree_VEC (pph_stream *stream, VEC(tree,gc) *v)
> +{
> +  size_t i;
>
> Likewise.

The routines will eventually do different tasks.  The writes
may be redundant but the reads are not.  In particular, the use
of pph_stream_read_tree_vec overwrites the tree_vec variable.
We really want to do a merge.  I can get away with the overwrite
only with the single-leading pph file.  When we do more than one
PPH file, I will need something like these routines back, so these
have been archived for future code.

> http://codereview.appspot.com/4486042/

-- 
Lawrence Crowl
Sign in to reply to this message.

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