aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-streamer-in.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2016-10-11 07:38:08 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2016-10-11 07:38:08 +0000
commitec1db2a9949e828d4b65757c8a3de2bde37ef493 (patch)
tree389f2ee21069cd3fbc3717a0d83c00f200c8a926 /gcc/lto-streamer-in.c
parent038b5cc0d5f5e5df2be06844d9f53e9c08fc985a (diff)
downloadgcc-ec1db2a9949e828d4b65757c8a3de2bde37ef493.zip
gcc-ec1db2a9949e828d4b65757c8a3de2bde37ef493.tar.gz
gcc-ec1db2a9949e828d4b65757c8a3de2bde37ef493.tar.bz2
lto-streamer-out.c (collect_block_tree_leafs): New helper.
2016-10-11 Richard Biener <rguenther@suse.de> * lto-streamer-out.c (collect_block_tree_leafs): New helper. (output_function): Properly stream the whole block tree. * lto-streamer-in.c (input_function): Likewise. From-SVN: r240964
Diffstat (limited to 'gcc/lto-streamer-in.c')
-rw-r--r--gcc/lto-streamer-in.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c
index 5075b56..f852bf9 100644
--- a/gcc/lto-streamer-in.c
+++ b/gcc/lto-streamer-in.c
@@ -1036,6 +1036,9 @@ input_function (tree fn_decl, struct data_in *data_in,
/* Read the tree of lexical scopes for the function. */
DECL_INITIAL (fn_decl) = stream_read_tree (ib, data_in);
+ unsigned block_leaf_count = streamer_read_uhwi (ib);
+ while (block_leaf_count--)
+ stream_read_tree (ib, data_in);
if (!streamer_read_uhwi (ib))
return;