diff options
author | Jan Hubicka <jh@suse.cz> | 2011-10-04 11:46:56 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2011-10-04 09:46:56 +0000 |
commit | 398f05daa1904a479a58c212012faa10b65e8834 (patch) | |
tree | 57ee07886936e8cdf54731ec7b22e1981530e307 /gcc/lto-streamer-out.c | |
parent | 36a50ab6e0a6dcf32f1ece84621704cd9b16eabe (diff) | |
download | gcc-398f05daa1904a479a58c212012faa10b65e8834.zip gcc-398f05daa1904a479a58c212012faa10b65e8834.tar.gz gcc-398f05daa1904a479a58c212012faa10b65e8834.tar.bz2 |
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
Diffstat (limited to 'gcc/lto-streamer-out.c')
-rw-r--r-- | gcc/lto-streamer-out.c | 5 |
1 files changed, 4 insertions, 1 deletions
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); |