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

Issue 4528096: [pph] Regularize Streaming (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years ago by Lawrence Crowl
Modified:
13 years 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -91 lines) Patch
M gcc/c-family/c.opt View 1 chunk +4 lines, -0 lines 0 comments Download
M gcc/cp/pph-streamer-in.c View 3 chunks +84 lines, -45 lines 0 comments Download
M gcc/cp/pph-streamer-out.c View 3 chunks +84 lines, -46 lines 0 comments Download

Messages

Total messages: 3
Lawrence Crowl
Add a new flag -fpph-untree. In pph_stream_read_tree and pph_stream_write_tree: Refactor from nested if statements to ...
14 years ago (2011-05-25 02:42:39 UTC) #1
Diego Novillo
On Tue, May 24, 2011 at 22:42, Lawrence Crowl <crowl@google.com> wrote: > For TEMPLATE_DECL, also ...
14 years ago (2011-05-25 12:18:03 UTC) #2
Diego Novillo
14 years ago (2011-05-25 14:07:47 UTC) #3
On Wed, May 25, 2011 at 08:17, Diego Novillo <dnovillo@google.com> wrote:

>> +    case TEMPLATE_DECL:
>>     {
>> +      pph_output_tree_or_ref_1 (stream, DECL_INITIAL (expr), ref_p, 3);
>> +      pph_stream_write_lang_specific (stream, expr, ref_p);
>>       pph_output_tree_or_ref_1 (stream, DECL_TEMPLATE_RESULT (expr), ref_p,
3);
>>       pph_output_tree_or_ref_1 (stream, DECL_TEMPLATE_PARMS (expr), ref_p,
3);
>>       pph_output_tree_or_ref_1 (stream, DECL_CONTEXT (expr), ref_p, 3);
>> +      pph_output_uchar (stream, DECL_MEMBER_TEMPLATE_P (expr));
>
> There does not seem to be a read operation for DECL_MEMBER_TEMPLATE_P.

Fixed with this:

2011-05-25  Diego Novillo  <dnovillo@google.com>

        * pph-streamer-out.c (pph_stream_write_tree) <TEMPLATE_DECL>:
        Do not write DECL_MEMBER_TEMPLATE_P.

diff --git a/gcc/cp/pph-streamer-out.c b/gcc/cp/pph-streamer-out.c
index 1168683..6c451ac 100644
--- a/gcc/cp/pph-streamer-out.c
+++ b/gcc/cp/pph-streamer-out.c
@@ -924,7 +924,6 @@ pph_stream_write_tree (struct output_block *ob,
tree expr, bool ref_p)
       pph_output_tree_or_ref_1 (stream, DECL_TEMPLATE_RESULT (expr), ref_p, 3);
       pph_output_tree_or_ref_1 (stream, DECL_TEMPLATE_PARMS (expr), ref_p, 3);
       pph_output_tree_or_ref_1 (stream, DECL_CONTEXT (expr), ref_p, 3);
-      pph_output_uchar (stream, DECL_MEMBER_TEMPLATE_P (expr));
       break;
     }


Tested and committed to the branch.


Diego.
Sign in to reply to this message.

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