diff mbox

[pph] Regularize Streaming (issue4528096)

Message ID BANLkTimpAyojgUmm9NhOjtngcokxvQKnqw@mail.gmail.com
State New
Headers show

Commit Message

Diego Novillo May 25, 2011, 2:07 p.m. UTC
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.



Tested and committed to the branch.


Diego.
diff mbox

Patch

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;
     }