From 398f05daa1904a479a58c212012faa10b65e8834 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 4 Oct 2011 11:46:56 +0200 Subject: lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter. * lto-streamer.h (lto_input_toplevel_asms): Add order_base parameter. * lto-streamer-in.c (lto_input_toplevel_asms): Stream in order. * lto-streamer-out.c (lto_output_toplevel_asms): Stream out order. * lto-cgraph.c (order_base): New static var. (lto_output_node): Stream in order. (lto_output_varpool_node): Stream out order. (input_node): Stream in order. (input_varpool_node): Stream out order. (input_cgraph_1): Initialize order base; update call of lto_input_toplevel_asms. From-SVN: r179496 --- gcc/lto-streamer-out.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/lto-streamer-out.c') diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index d107b91..c14b3a9 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -954,7 +954,10 @@ lto_output_toplevel_asms (void) streamer_write_char_stream (ob->string_stream, 0); for (can = cgraph_asm_nodes; can; can = can->next) - streamer_write_string_cst (ob, ob->main_stream, can->asm_str); + { + streamer_write_string_cst (ob, ob->main_stream, can->asm_str); + streamer_write_hwi (ob, can->order); + } streamer_write_string_cst (ob, ob->main_stream, NULL_TREE); -- cgit v1.1