aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-streamer-out.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-04-03 14:22:17 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-04-03 14:22:17 +0000
commita0daf6598ad37ed021d6bc5d4bcbdd0a068b6719 (patch)
tree1d25714c401cc679fc2535fffbed6a9cd2c44e69 /gcc/tree-streamer-out.c
parentf16c88d25f44b90827c02f8d3ae0b72a9a9e2be3 (diff)
downloadgcc-a0daf6598ad37ed021d6bc5d4bcbdd0a068b6719.zip
gcc-a0daf6598ad37ed021d6bc5d4bcbdd0a068b6719.tar.gz
gcc-a0daf6598ad37ed021d6bc5d4bcbdd0a068b6719.tar.bz2
tree-streamer-out.c (streamer_write_chain): Do not temporarily set TREE_CHAIN to NULL_TREE.
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
Diffstat (limited to 'gcc/tree-streamer-out.c')
-rw-r--r--gcc/tree-streamer-out.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/tree-streamer-out.c b/gcc/tree-streamer-out.c
index 646fba5..90dec0a 100644
--- a/gcc/tree-streamer-out.c
+++ b/gcc/tree-streamer-out.c
@@ -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);
}