diff options
author | Roger Sayle <roger@eyesopen.com> | 2007-03-08 19:02:51 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2007-03-08 19:02:51 +0000 |
commit | ebb07520cddaa13da40dbd6775c5ff3f1b22494c (patch) | |
tree | 3617ec1a2bb412824e9bea9c93c38f76d7505941 /gcc/tree-tailcall.c | |
parent | 0c948c27462a668b4e01f7841c0cca812fbbdd8c (diff) | |
download | gcc-ebb07520cddaa13da40dbd6775c5ff3f1b22494c.tar.gz |
tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt instead of calling build2 with a GIMPLE_MODIFY_STMT.
* tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
instead of calling build2 with a GIMPLE_MODIFY_STMT.
(honor_protect_cleanup_actions, lower_try_finally_switch):
Likewise.
* tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
ifc_temp_var): Likewise.
* tree-inline.c (setup_one_parameter): Likewise.
* tree-mudflap.c (mf_decl_cache_locals,
mf_build_check_statement_for): Likewise.
* tree-nested.c (init_tmp_var, save_tmp_var,
finalize_nesting_tree_1): Likewise.
* tree-outof-ssa.c (insert_copy_on_edge,
insert_backedge_copies): Likewise.
* tree-profile.c (tree_gen_edge_profiler,
tree_gen_ic_profiler): Likewise.
* tree-scalar-evolution.c (scev_const_prop): Likewise.
* tree-sra.c (sra_build_assignment): Likewise.
* tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
* tree-ssa-math-opts.c (insert_reciprocals,
execute_cse_sincos_1): Likewise.
* tree-tailcall.c (adjust_accumulator_values,
adjust_return_value): Likewise.
* tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
* tree-vect-transform.c (vect_create_data_ref_ptr,
bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
vect_create_epilog_for_reduction, vectorizable_reduction,
vectorizable_call, vectorizable_conversion,
vectorizable_assignment, vectorizable_operation,
vectorizable_type_demotion, vect_gen_widened_results_half,
vect_permute_store_chain, vectorizable_store,
vect_setup_realignment, vect_permute_load_chain,
vectorizable_load, vectorizable_condition,
vect_create_cond_for_align_checks): Likewise.
* tree-vrp.c (build_assert_expr_for): Likewise.
From-SVN: r122707
Diffstat (limited to 'gcc/tree-tailcall.c')
-rw-r--r-- | gcc/tree-tailcall.c | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/gcc/tree-tailcall.c b/gcc/tree-tailcall.c index 7889cbb8644..fa63637fb6d 100644 --- a/gcc/tree-tailcall.c +++ b/gcc/tree-tailcall.c @@ -1,5 +1,5 @@ /* Tail call optimization on trees. - Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc. + Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. This file is part of GCC. @@ -560,8 +560,9 @@ adjust_accumulator_values (block_stmt_iterator bsi, tree m, tree a, edge back) var = m_acc; else { - stmt = build2 (GIMPLE_MODIFY_STMT, ret_type, NULL_TREE, - build2 (MULT_EXPR, ret_type, m_acc, a)); + stmt = build_gimple_modify_stmt (NULL_TREE, + build2 (MULT_EXPR, ret_type, + m_acc, a)); tmp = create_tmp_var (ret_type, "acc_tmp"); add_referenced_var (tmp); @@ -574,8 +575,8 @@ adjust_accumulator_values (block_stmt_iterator bsi, tree m, tree a, edge back) else var = a; - stmt = build2 (GIMPLE_MODIFY_STMT, ret_type, NULL_TREE, - build2 (PLUS_EXPR, ret_type, a_acc, var)); + stmt = build_gimple_modify_stmt (NULL_TREE, build2 (PLUS_EXPR, ret_type, + a_acc, var)); var = make_ssa_name (SSA_NAME_VAR (a_acc), stmt); GIMPLE_STMT_OPERAND (stmt, 0) = var; bsi_insert_after (&bsi, stmt, BSI_NEW_STMT); @@ -584,8 +585,9 @@ adjust_accumulator_values (block_stmt_iterator bsi, tree m, tree a, edge back) if (m) { - stmt = build2 (GIMPLE_MODIFY_STMT, ret_type, NULL_TREE, - build2 (MULT_EXPR, ret_type, m_acc, m)); + stmt = build_gimple_modify_stmt (NULL_TREE, + build2 (MULT_EXPR, ret_type, + m_acc, m)); var = make_ssa_name (SSA_NAME_VAR (m_acc), stmt); GIMPLE_STMT_OPERAND (stmt, 0) = var; bsi_insert_after (&bsi, stmt, BSI_NEW_STMT); @@ -638,8 +640,9 @@ adjust_return_value (basic_block bb, tree m, tree a) if (m) { - stmt = build2 (GIMPLE_MODIFY_STMT, ret_type, NULL_TREE, - build2 (MULT_EXPR, ret_type, m_acc, ret_var)); + stmt = build_gimple_modify_stmt (NULL_TREE, + build2 (MULT_EXPR, ret_type, + m_acc, ret_var)); tmp = create_tmp_var (ret_type, "acc_tmp"); add_referenced_var (tmp); @@ -653,8 +656,9 @@ adjust_return_value (basic_block bb, tree m, tree a) if (a) { - stmt = build2 (GIMPLE_MODIFY_STMT, ret_type, NULL_TREE, - build2 (PLUS_EXPR, ret_type, a_acc, var)); + stmt = build_gimple_modify_stmt (NULL_TREE, + build2 (PLUS_EXPR, ret_type, + a_acc, var)); tmp = create_tmp_var (ret_type, "acc_tmp"); add_referenced_var (tmp); |