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

Issue 4303049: [pph] AST streaming (1/4) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 1 month ago by Diego Novillo
Modified:
13 years, 1 month ago
Reviewers:
CC:
Lawrence Crowl
Visibility:
Public.

Patch Set 1 #

Patch Set 2 : [pph] AST streaming (2/4) #

Patch Set 3 : [pph] AST streaming (3/4) #

Patch Set 4 : [pph] AST streaming (4/4) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -0 lines) Patch
M gcc/lto-streamer-in.c View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M gcc/lto-streamer-out.c View 1 2 3 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 4
Diego Novillo
This set of 4 patches sets up the basic streaming facility for PPH. The idea ...
13 years, 1 month ago (2011-03-23 22:14:17 UTC) #1
Diego Novillo
Main streaming support. See http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01556.html for details. cp/ChangeLog.pph 2011-03-23 Diego Novillo <dnovillo@google.com> * Make-lang.in (cp/pph-streamer.o): ...
13 years, 1 month ago (2011-03-23 22:16:32 UTC) #2
Diego Novillo
LTO cleanups. See http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01556.html for details. * lto-streamer-in.c (input_string_internal): Add clarifying comments. * lto-streamer-out.c (lto_output_string_with_length): ...
13 years, 1 month ago (2011-03-23 22:17:45 UTC) #3
Diego Novillo
13 years, 1 month ago (2011-03-23 22:18:44 UTC) #4
Ugly LTO hacks.  To be nuked.

See http://gcc.gnu.org/ml/gcc-patches/2011-03/msg01556.html for details.


Diego.

	* lto-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
	Always read DECL_SAVED_TREE.
	* lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
	Igonore varpool nodes.
	(lto_output_ts_decl_non_common_tree_pointers): Output NULL
	DECL_SAVED_TREE.

diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c
index b86008b..d2f0075 100644
--- a/gcc/lto-streamer-in.c
+++ b/gcc/lto-streamer-in.c
@@ -2025,6 +2028,10 @@ lto_input_ts_decl_non_common_tree_pointers (struct
lto_input_block *ib,
 {
   if (TREE_CODE (expr) == FUNCTION_DECL)
     {
+      /* FIXME pph - Hookize.  */
+#if 1
+      DECL_SAVED_TREE (expr) = lto_input_tree (ib, data_in);
+#endif
       DECL_ARGUMENTS (expr) = lto_input_tree (ib, data_in);
       DECL_RESULT (expr) = lto_input_tree (ib, data_in);
     }
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index a66e1fb..d3d8294 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -854,6 +848,8 @@ lto_output_ts_decl_common_tree_pointers (struct output_block
*ob, tree expr,
       && TREE_CODE (expr) != TRANSLATION_UNIT_DECL)
     {
       tree initial = DECL_INITIAL (expr);
+      /* FIXME pph - Hookize.  */
+#if 0
       if (TREE_CODE (expr) == VAR_DECL
 	  && (TREE_STATIC (expr) || DECL_EXTERNAL (expr))
 	  && initial)
@@ -866,6 +862,7 @@ lto_output_ts_decl_common_tree_pointers (struct output_block
*ob, tree expr,
 							      vnode))
 	    initial = NULL;
 	}
+#endif
     
       lto_output_tree_or_ref (ob, initial, ref_p);
     }
@@ -898,11 +895,16 @@ lto_output_ts_decl_non_common_tree_pointers (struct
output_block *ob,
 {
   if (TREE_CODE (expr) == FUNCTION_DECL)
     {
+#if 0
       /* DECL_SAVED_TREE holds the GENERIC representation for DECL.
 	 At this point, it should not exist.  Either because it was
 	 converted to gimple or because DECL didn't have a GENERIC
 	 representation in this TU.  */
       gcc_assert (DECL_SAVED_TREE (expr) == NULL_TREE);
+#else
+      /* FIXME pph - Hookize and handle FE ASTs.  */
+      lto_output_tree_or_ref (ob, NULL, ref_p);
+#endif
       lto_output_tree_or_ref (ob, DECL_ARGUMENTS (expr), ref_p);
       lto_output_tree_or_ref (ob, DECL_RESULT (expr), ref_p);
     }

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

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