diff options
author | Jan Hubicka <jh@suse.cz> | 2012-09-09 19:29:21 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2012-09-09 17:29:21 +0000 |
commit | b4661bfe214bf5ae119c511f994336ccc3fe144c (patch) | |
tree | 267374ed574354532c002262d01eab0c5d4195fb /gcc/passes.c | |
parent | 3ca6351daa2a4e90af9a97085f8fa316b6ede57f (diff) | |
download | gcc-b4661bfe214bf5ae119c511f994336ccc3fe144c.zip gcc-b4661bfe214bf5ae119c511f994336ccc3fe144c.tar.gz gcc-b4661bfe214bf5ae119c511f994336ccc3fe144c.tar.bz2 |
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
Diffstat (limited to 'gcc/passes.c')
-rw-r--r-- | gcc/passes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index 8365cff..e6a4f93 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -2264,7 +2264,7 @@ static void ipa_write_summaries_1 (lto_symtab_encoder_t encoder) { struct lto_out_decl_state *state = lto_new_out_decl_state (); - compute_ltrans_boundary (state, encoder); + state->symtab_node_encoder = encoder; lto_push_out_decl_state (state); @@ -2324,7 +2324,7 @@ ipa_write_summaries (void) if ((!vnode->alias || vnode->alias_of)) lto_set_symtab_encoder_in_partition (encoder, (symtab_node)vnode); - ipa_write_summaries_1 (encoder); + ipa_write_summaries_1 (compute_ltrans_boundary (encoder)); free (order); } @@ -2376,7 +2376,7 @@ ipa_write_optimization_summaries (lto_symtab_encoder_t encoder) { struct lto_out_decl_state *state = lto_new_out_decl_state (); lto_symtab_encoder_iterator lsei; - compute_ltrans_boundary (state, encoder); + state->symtab_node_encoder = encoder; lto_push_out_decl_state (state); for (lsei = lsei_start_function_in_partition (encoder); |