From b348c78aa4ab72ea533a01ad24311f45b0b4f4cb Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Tue, 31 Jul 2018 21:19:25 +0000 Subject: Save discriminator info for LTO for gcc/ChangeLog * gimple-streamer-in.c (input_bb): Restore BB discriminator. * gimple-streamer-out.c (output_bb): Save it. * lto-streamer-in.c (input_struct_function_base): Restore instance discriminator if available. Create map on demand. * lto-streamer-out.c (output_struct_function_base): Save it if available. * final.c (decl_to_instance_map): Document LTO strategy. From-SVN: r263183 --- gcc/gimple-streamer-out.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/gimple-streamer-out.c') diff --git a/gcc/gimple-streamer-out.c b/gcc/gimple-streamer-out.c index d120aa9..3a23680 100644 --- a/gcc/gimple-streamer-out.c +++ b/gcc/gimple-streamer-out.c @@ -212,6 +212,7 @@ output_bb (struct output_block *ob, basic_block bb, struct function *fn) streamer_write_uhwi (ob, bb->index); bb->count.stream_out (ob); streamer_write_hwi (ob, bb->flags); + streamer_write_hwi (ob, bb->discriminator); if (!gsi_end_p (bsi) || phi_nodes (bb)) { -- cgit v1.1