summaryrefslogtreecommitdiff
path: root/gcc/passes.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-15 16:57:35 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-15 16:57:35 +0000
commitd97be7136154237ee53af38b9486800e0474d8fb (patch)
treee23962de964283fea3e75b010a09768f298bb93b /gcc/passes.c
parent8f71200d0c993c25ef4b6926033c739ef6572e37 (diff)
downloadgcc-d97be7136154237ee53af38b9486800e0474d8fb.tar.gz
* ipa-reference.c: Include toplev.h
(is_proper_for_analysis): Only add to all_module_statics if it is allocated. (write_node_summary_p, stream_out_bitmap, ipa_reference_write_optimization_summary, ipa_reference_read_optimization_summary): New. (struct ipa_opt_pass_d pass_ipa_reference): Add optimization summary streaming. * lto-cgraph.c (referenced_from_this_partition_p, reachable_from_this_partition_p): New functions. * tree-ssa-alias.c (ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Ask ipa-reference even for public vars. * opts.c (decode_options): Enable ipa_reference. * Makefile.in (ipa-reference.o): Add toplev.h dependency. * lto-streamer.h (referenced_from_this_partition_p, reachable_from_this_partition_p): Declare. * gcc.dg/lto/ipareference_1.c: New file. * gcc.dg/lto/ipareference_2.c: New file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159435 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/passes.c')
-rw-r--r--gcc/passes.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/passes.c b/gcc/passes.c
index 041837f04d3..85bd33bfadf 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -1695,8 +1695,7 @@ static void
ipa_write_summaries_1 (cgraph_node_set set, varpool_node_set vset)
{
struct lto_out_decl_state *state = lto_new_out_decl_state ();
- state->cgraph_node_encoder = lto_cgraph_encoder_new ();
- state->varpool_node_encoder = lto_varpool_encoder_new ();
+ compute_ltrans_boundary (state, set, vset);
lto_push_out_decl_state (state);
@@ -1809,8 +1808,8 @@ void
ipa_write_optimization_summaries (cgraph_node_set set, varpool_node_set vset)
{
struct lto_out_decl_state *state = lto_new_out_decl_state ();
- state->cgraph_node_encoder = lto_cgraph_encoder_new ();
- state->varpool_node_encoder = lto_varpool_encoder_new ();
+ compute_ltrans_boundary (state, set, vset);
+
lto_push_out_decl_state (state);
gcc_assert (flag_wpa);