diff mbox

[pph] Write TREE_LANG_FLAG_? fields (issue4430067)

Message ID 20110426234532.8E23B1DA1C2@topo.tor.corp.google.com
State New
Headers show

Commit Message

Diego Novillo April 26, 2011, 11:45 p.m. UTC
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.


--
This patch is available for review at http://codereview.appspot.com/4430067
diff mbox

Patch

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