This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [pph] Regularize Streaming (issue4528096)


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]