diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-21 08:13:27 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-08-21 08:13:27 +0000 |
commit | c5cc4842461782cb7c04a213f88871434af749ca (patch) | |
tree | ac13290a08f4ac5331c1427478989a701ad10615 /gcc/lto-cgraph.c | |
parent | 63182c5c48a9601697e228007b6e38e0c7af0958 (diff) | |
download | gcc-c5cc4842461782cb7c04a213f88871434af749ca.tar.gz |
* lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of flag_wpa.
* lto-streamer-out.c (lto_output): Likewise.
* passes.c (ipa_write_optimization_summaries): Initialize statement uids.
* lto.c (lto_1_to_1_map): Be prepared for node to have no file data.
(lto_wpa_write_files): Update comments.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163438 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/lto-cgraph.c')
-rw-r--r-- | gcc/lto-cgraph.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/lto-cgraph.c b/gcc/lto-cgraph.c index 9bd0f70d0e7..22b49161067 100644 --- a/gcc/lto-cgraph.c +++ b/gcc/lto-cgraph.c @@ -281,7 +281,8 @@ lto_output_edge (struct lto_simple_output_block *ob, struct cgraph_edge *edge, lto_output_sleb128_stream (ob->main_stream, edge->count); bp = bitpack_create (ob->main_stream); - uid = flag_wpa ? edge->lto_stmt_uid : gimple_uid (edge->call_stmt); + uid = (!gimple_has_body_p (edge->caller->decl) + ? edge->lto_stmt_uid : gimple_uid (edge->call_stmt)); bp_pack_value (&bp, uid, HOST_BITS_PER_INT); bp_pack_value (&bp, edge->inline_failed, HOST_BITS_PER_INT); bp_pack_value (&bp, edge->frequency, HOST_BITS_PER_INT); |