From 2c5721d9f36a114809e296686ff39b1324b0cc5b Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Tue, 10 Nov 2009 15:43:20 +0100 Subject: tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field. 2009-11-10 Martin Jambor * tree-pass.h (struct ipa_opt_pass_d): Added stmt_fixup field. (execute_all_ipa_stmt_fixups): Declare. * ipa-cp.c (pass_ipa_cp): Added stmt_fixup value. * ipa-inline.c (pass_ipa_inline): Likewise. * ipa-pure-const.c (pass_ipa_pure_cons): Likewise. * ipa-reference.c (pass_ipa_reference): Likewise. * ipa.c (pass_ipa_whole_program_visibility): Likewise. * lto-streamer-out.c (pass_ipa_lto_gimple_out): Likewise. (pass_ipa_lto_finish_out): Likewise. * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Likewise. * passes.c (execute_ipa_stmt_fixups): New function. (execute_all_ipa_stmt_fixups): New function. * lto-streamer-in.c (input_function): Call execute_all_ipa_stmt_fixups. From-SVN: r154064 --- gcc/lto-streamer-in.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/lto-streamer-in.c') diff --git a/gcc/lto-streamer-in.c b/gcc/lto-streamer-in.c index f7c7936..7e1559c 100644 --- a/gcc/lto-streamer-in.c +++ b/gcc/lto-streamer-in.c @@ -1261,6 +1261,7 @@ input_function (tree fn_decl, struct data_in *data_in, gimple *stmts; basic_block bb; struct bitpack_d *bp; + struct cgraph_node *node; fn = DECL_STRUCT_FUNCTION (fn_decl); tag = input_record_start (ib); @@ -1340,7 +1341,9 @@ input_function (tree fn_decl, struct data_in *data_in, gimple_set_body (fn_decl, bb_seq (ei_edge (ei)->dest)); } - fixup_call_stmt_edges (cgraph_node (fn_decl), stmts); + node = cgraph_node (fn_decl); + fixup_call_stmt_edges (node, stmts); + execute_all_ipa_stmt_fixups (node, stmts); update_ssa (TODO_update_ssa_only_virtuals); free_dominance_info (CDI_DOMINATORS); -- cgit v1.1