aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2020-05-29 12:25:48 +0200
committerGiuliano Belinassi <giuliano.belinassi@usp.br>2020-08-17 13:09:19 -0300
commit88a7791d41c0d9dda7c78d7f48c6f9c2b12db624 (patch)
treeebf81860a87a8b51d1fc0b59a508f383bf107081
parent1a4584623db017a99296191661cb46e6ae509a16 (diff)
downloadgcc-88a7791d41c0d9dda7c78d7f48c6f9c2b12db624.zip
gcc-88a7791d41c0d9dda7c78d7f48c6f9c2b12db624.tar.gz
gcc-88a7791d41c0d9dda7c78d7f48c6f9c2b12db624.tar.bz2
Fix streamer desynchornization caused by streamer debugging patch
it turns out I lost one hunk in the patch disabling extra streaming which causes streamer to go out of sync in the case non-trivial scc containing the node being streamed appears in local stream (which seems quite rare since it does not happen during bootstrap). 2020-05-29 Jan Hubicka <hubicka@ucw.cz> PR lto/95362 * lto-streamer-out.c (lto_output_tree): Disable redundant streaming.
-rw-r--r--gcc/lto-streamer-out.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index 288e3c0..dfd32ec 100644
--- a/gcc/lto-streamer-out.c
+++ b/gcc/lto-streamer-out.c
@@ -1791,8 +1791,9 @@ lto_output_tree (struct output_block *ob, tree expr,
}
streamer_write_record_start (ob, LTO_tree_pickle_reference);
streamer_write_uhwi (ob, ix);
- streamer_write_enum (ob->main_stream, LTO_tags, LTO_NUM_TAGS,
- lto_tree_code_to_tag (TREE_CODE (expr)));
+ if (streamer_debugging)
+ streamer_write_enum (ob->main_stream, LTO_tags, LTO_NUM_TAGS,
+ lto_tree_code_to_tag (TREE_CODE (expr)));
}
in_dfs_walk = false;
lto_stats.num_pickle_refs_output++;