passes.c (ipa_write_summaries_1): Set state; do not call compute_ltrans_boundary.
authorJan Hubicka <jh@suse.cz>
Sun, 9 Sep 2012 17:29:21 +0000 (19:29 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 9 Sep 2012 17:29:21 +0000 (17:29 +0000)
commitb4661bfe214bf5ae119c511f994336ccc3fe144c
tree267374ed574354532c002262d01eab0c5d4195fb
parent3ca6351daa2a4e90af9a97085f8fa316b6ede57f
passes.c (ipa_write_summaries_1): Set state; do not call compute_ltrans_boundary.

* passes.c (ipa_write_summaries_1): Set state;
do not call compute_ltrans_boundary.
(ipa_write_optimization_summaries): Likewise.
(ipa_write_summaries): compute_ltrans_boundary here.
* lto-streamer.h (lto_symtab_encoder_d): NODES are allocated in heap.
(compute_ltrans_boundary): Update prototype.

* lto.c (lto_wpa_write_files): Do not delete partition encoder;
it is deleted after streaming.
* lto-partition.c (partition_symbol_p): New function.
(promote_var, promote_fn): Remove.
(promote_symbol): New function.
(lto_promote_cross_file_statics): First compute boundaries; rewrite
to lookup the actual boundaries instead of computing them ad-hoc.

From-SVN: r191113
gcc/ChangeLog
gcc/lto-cgraph.c
gcc/lto-streamer.h
gcc/lto/ChangeLog
gcc/lto/lto-partition.c
gcc/lto/lto.c
gcc/passes.c