aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-streamer-out.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2018-06-21 13:47:48 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2018-06-21 13:47:48 +0000
commitf5fe239ec90095b885aef70a8058fdfc03a74340 (patch)
tree02dd721152dc2268b7d933b8468064b3448c7a77 /gcc/tree-streamer-out.c
parente67343d7445768ef22523894ec589791f526234c (diff)
downloadgcc-f5fe239ec90095b885aef70a8058fdfc03a74340.zip
gcc-f5fe239ec90095b885aef70a8058fdfc03a74340.tar.gz
gcc-f5fe239ec90095b885aef70a8058fdfc03a74340.tar.bz2
lto-streamer-out.c (DFS::DFS_write_tree_body): Update outdated comment.
2018-06-21 Richard Biener <rguenther@suse.de> * lto-streamer-out.c (DFS::DFS_write_tree_body): Update outdated comment. Follow BLOCK_ABSTRACT_ORIGIN unconditionally. * tree-streamer-in.c (lto_input_ts_block_tree_pointers): Update comment. * tree-streamer-out.c (write_ts_block_tree_pointers): Stream BLOCK_ABSTRACT_ORIGIN unconditionally. From-SVN: r261847
Diffstat (limited to 'gcc/tree-streamer-out.c')
-rw-r--r--gcc/tree-streamer-out.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/gcc/tree-streamer-out.c b/gcc/tree-streamer-out.c
index 03145b4..29bf064 100644
--- a/gcc/tree-streamer-out.c
+++ b/gcc/tree-streamer-out.c
@@ -779,20 +779,8 @@ write_ts_block_tree_pointers (struct output_block *ob, tree expr, bool ref_p)
streamer_write_chain (ob, BLOCK_VARS (expr), ref_p);
stream_write_tree (ob, BLOCK_SUPERCONTEXT (expr), ref_p);
+ stream_write_tree (ob, BLOCK_ABSTRACT_ORIGIN (expr), ref_p);
- /* Stream BLOCK_ABSTRACT_ORIGIN for the limited cases we can handle - those
- that represent inlined function scopes.
- For the rest them on the floor instead of ICEing in dwarf2out.c, but
- keep the notion of whether the block is an inlined block by refering
- to itself for the sake of tree_nonartificial_location. */
- if (inlined_function_outer_scope_p (expr))
- {
- tree ultimate_origin = block_ultimate_origin (expr);
- stream_write_tree (ob, ultimate_origin, ref_p);
- }
- else
- stream_write_tree (ob, (BLOCK_ABSTRACT_ORIGIN (expr)
- ? expr : NULL_TREE), ref_p);
/* Do not stream BLOCK_NONLOCALIZED_VARS. We cannot handle debug information
for early inlined BLOCKs so drop it on the floor instead of ICEing in
dwarf2out.c. */