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

Issue 4430067: [pph] Write TREE_LANG_FLAG_? fields (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years ago by Diego Novillo
Modified:
13 years ago
Reviewers:
CC:
Lawrence Crowl, gcc-patches_gcc.gnu.org
Visibility:
Public.

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -0 lines) Patch
M gcc/cp/pph-streamer-in.c View 1 chunk +8 lines, -0 lines 0 comments Download
M gcc/cp/pph-streamer-out.c View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 1
Diego Novillo
13 years ago (2011-04-26 23:45:40 UTC) #1
More data we never bothered to stream from GIMPLE but it's important
in the front end.

Tested on x86_64.  Committed to the branch.


cp/ChangeLog.pph
2011-04-26  Diego Novillo  <dnovillo@google.com>

	* pph-streamer-in.c (pph_stream_unpack_value_fields): Read
	TREE_LANG_FLAG_? fields.
	* pph-streamer-out.c (pph_stream_pack_value_fields): Write
	TREE_LANG_FLAG_? fields.

diff --git a/gcc/cp/pph-streamer-in.c b/gcc/cp/pph-streamer-in.c
index c98c2f4..4c5e377 100644
--- a/gcc/cp/pph-streamer-in.c
+++ b/gcc/cp/pph-streamer-in.c
@@ -60,6 +60,14 @@ pph_stream_unpack_value_fields (struct bitpack_d *bp, tree
expr)
       DECL_LANG_FLAG_7 (expr) = bp_unpack_value (bp, 1);
       DECL_LANG_FLAG_8 (expr) = bp_unpack_value (bp, 1);
     }
+
+  TREE_LANG_FLAG_0 (expr) = bp_unpack_value (bp, 1);
+  TREE_LANG_FLAG_1 (expr) = bp_unpack_value (bp, 1);
+  TREE_LANG_FLAG_2 (expr) = bp_unpack_value (bp, 1);
+  TREE_LANG_FLAG_3 (expr) = bp_unpack_value (bp, 1);
+  TREE_LANG_FLAG_4 (expr) = bp_unpack_value (bp, 1);
+  TREE_LANG_FLAG_5 (expr) = bp_unpack_value (bp, 1);
+  TREE_LANG_FLAG_6 (expr) = bp_unpack_value (bp, 1);
 }
 
 
diff --git a/gcc/cp/pph-streamer-out.c b/gcc/cp/pph-streamer-out.c
index 38c7bbe..a5670c3 100644
--- a/gcc/cp/pph-streamer-out.c
+++ b/gcc/cp/pph-streamer-out.c
@@ -66,6 +66,14 @@ pph_stream_pack_value_fields (struct bitpack_d *bp, tree
expr)
       bp_pack_value (bp, DECL_LANG_FLAG_7 (expr), 1);
       bp_pack_value (bp, DECL_LANG_FLAG_8 (expr), 1);
     }
+
+  bp_pack_value (bp, TREE_LANG_FLAG_0 (expr), 1);
+  bp_pack_value (bp, TREE_LANG_FLAG_1 (expr), 1);
+  bp_pack_value (bp, TREE_LANG_FLAG_2 (expr), 1);
+  bp_pack_value (bp, TREE_LANG_FLAG_3 (expr), 1);
+  bp_pack_value (bp, TREE_LANG_FLAG_4 (expr), 1);
+  bp_pack_value (bp, TREE_LANG_FLAG_5 (expr), 1);
+  bp_pack_value (bp, TREE_LANG_FLAG_6 (expr), 1);
 }
 
 

--
This patch is available for review at http://codereview.appspot.com/4430067
Sign in to reply to this message.

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