From a0daf6598ad37ed021d6bc5d4bcbdd0a068b6719 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 3 Apr 2014 14:22:17 +0000 Subject: [PATCH] tree-streamer-out.c (streamer_write_chain): Do not temporarily set TREE_CHAIN to NULL_TREE. 2014-04-03 Richard Biener * tree-streamer-out.c (streamer_write_chain): Do not temporarily set TREE_CHAIN to NULL_TREE. From-SVN: r209058 --- gcc/ChangeLog | 5 +++++ gcc/tree-streamer-out.c | 8 -------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0756170c8ba..99ab7b45441 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-04-03 Richard Biener + + * tree-streamer-out.c (streamer_write_chain): Do not temporarily + set TREE_CHAIN to NULL_TREE. + 2014-04-03 Richard Biener PR tree-optimization/60740 diff --git a/gcc/tree-streamer-out.c b/gcc/tree-streamer-out.c index 646fba52688..90dec0a1ce6 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); } -- 2.30.2