]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
tree-streamer-out.c (streamer_write_chain): Do not temporarily set TREE_CHAIN to...
authorRichard Biener <rguenther@suse.de>
Thu, 3 Apr 2014 14:22:17 +0000 (14:22 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 3 Apr 2014 14:22:17 +0000 (14:22 +0000)
2014-04-03  Richard Biener  <rguenther@suse.de>

* tree-streamer-out.c (streamer_write_chain): Do not temporarily
set TREE_CHAIN to NULL_TREE.

From-SVN: r209058

gcc/ChangeLog
gcc/tree-streamer-out.c

index 0756170c8ba7c082c76fb397c6f95adfebebf718..99ab7b45441c0d7b29dc56f4dc05a3ebbaaf5390 100644 (file)
@@ -1,3 +1,8 @@
+2014-04-03  Richard Biener  <rguenther@suse.de>
+
+       * tree-streamer-out.c (streamer_write_chain): Do not temporarily
+       set TREE_CHAIN to NULL_TREE.
+
 2014-04-03  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/60740
index 646fba52688f7055cbbd8c274f8530f152b2b05e..90dec0a1ce697086d716ed8d15f123f13667b89f 100644 (file)
@@ -523,13 +523,6 @@ streamer_write_chain (struct output_block *ob, tree t, bool ref_p)
 {
   while (t)
     {
-      tree saved_chain;
-
-      /* Clear TREE_CHAIN to avoid blindly recursing into the rest
-        of the list.  */
-      saved_chain = TREE_CHAIN (t);
-      TREE_CHAIN (t) = NULL_TREE;
-
       /* We avoid outputting external vars or functions by reference
         to the global decls section as we do not want to have them
         enter decl merging.  This is, of course, only for the call
@@ -541,7 +534,6 @@ streamer_write_chain (struct output_block *ob, tree t, bool ref_p)
       else
        stream_write_tree (ob, t, ref_p);
 
-      TREE_CHAIN (t) = saved_chain;
       t = TREE_CHAIN (t);
     }