aboutsummaryrefslogtreecommitdiff
path: root/gcc/passes.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-04-20 16:49:18 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-04-20 14:49:18 +0000
commita837268b2b7f2b2623392c376144c5f343f23011 (patch)
tree177a4ee0cf4fce5cf2f9b7eda71d28eb9db862e4 /gcc/passes.c
parent48e5069861a635af72d47f8975d177ed36f7e6e5 (diff)
downloadgcc-a837268b2b7f2b2623392c376144c5f343f23011.zip
gcc-a837268b2b7f2b2623392c376144c5f343f23011.tar.gz
gcc-a837268b2b7f2b2623392c376144c5f343f23011.tar.bz2
cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
* cgraph.c (cgraph_remove_node): Kill bodies in other partitoin. (dump_cgraph_node): Dump new flags. * cgraph.h (struct cgraph_node): Add flags reachable_from_other_partition and in_other_partition. (cgraph_can_remove_if_no_direct_calls_p): Functions used by other partition can not be removed. * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by the other partition must be output; silence sanity checking on leaking functions bodies from other paritition. * lto-cgraph.c (reachable_from_other_partition_p): New function. (lto_output_node): Output new flags; do not sanity check that inline clones are output; drop lto_forced_extern_inline_p code; do not mock visibility flags at partition boundaries. (add_node_to): New function. (output_cgraph): Use it to sort functions so masters appear before clones. (input_overwrite_node): Input new flags. * passes.c (ipa_write_summaries): Do not call lto_new_extern_inline_states. * lto-section-out.c (forced_extern_inline, lto_new_extern_inline_states, lto_delete_extern_inline_states, lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill. * lto-streamer.h (lto_new_extern_inline_states, * lto_delete_extern_inline_states, lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill. * lto.c (lto_add_inline_clones): Do not track inlined_decls. (lto_add_all_inlinees): Likewise. (lto_wpa_write_files): Likewise. From-SVN: r158563
Diffstat (limited to 'gcc/passes.c')
-rw-r--r--gcc/passes.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/gcc/passes.c b/gcc/passes.c
index cbd605f..6437ab7 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -1695,7 +1695,6 @@ ipa_write_summaries (void)
if (!flag_generate_lto || errorcount || sorrycount)
return;
- lto_new_extern_inline_states ();
set = cgraph_node_set_new ();
/* Create the callgraph set in the same order used in
@@ -1726,7 +1725,6 @@ ipa_write_summaries (void)
}
ipa_write_summaries_1 (set);
- lto_delete_extern_inline_states ();
free (order);
ggc_free (set);