diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-07-25 19:15:50 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-07-25 19:15:50 +0000 |
commit | 3244e67d15cd8cf65da89849a2bea5161a7ed102 (patch) | |
tree | af2779b1ec5669ccd9b5104179ae4f53c95149ee /gcc/tree.c | |
parent | 53ed1a12d363e501b61b9bfd4a44d568918878c0 (diff) | |
download | gcc-3244e67d15cd8cf65da89849a2bea5161a7ed102.zip gcc-3244e67d15cd8cf65da89849a2bea5161a7ed102.tar.gz gcc-3244e67d15cd8cf65da89849a2bea5161a7ed102.tar.bz2 |
convert.c (convert_to_real, [...]): Replace calls to build with calls to buildN.
* convert.c (convert_to_real, convert_to_integer,
convert_to_complex): Replace calls to build with calls to buildN.
* coverage.c (tree_coverage_counter_ref): Likewise.
* dojump.c (do_jump): Likewise.
* dwarf2out.c (loc_descriptor_from_tree): Likewise.
* emit-rtl.c (component_ref_for_mem_expr,
set_mem_attributes_minus_bitpos): Likewise.
* explow.c (update_nonlocal_goto_save_area): Likewise.
* expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
expand_mult_add): Likewise.
* expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
store_constructor, get_inner_reference, expand_expr_real_1,
try_casesi, try_tablejump): Likewise.
* function.c (expand_function_start): Likewise.
* stmt.c (emit_case_bit_tests, expand_end_case_type,
node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
* stor-layout.c (place_union_field, layout_type): Likewise.
* tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
* varasm.c (copy_constant): Likewise.
From-SVN: r85160
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 17 |
1 files changed, 8 insertions, 9 deletions
@@ -1898,8 +1898,7 @@ substitute_in_expr (tree exp, tree f, tree r) && TREE_OPERAND (exp, 1) == f) return r; - /* If this expression hasn't been completed let, leave it - alone. */ + /* If this expression hasn't been completed let, leave it alone. */ if (TREE_CODE (inner) == PLACEHOLDER_EXPR && TREE_TYPE (inner) == 0) return exp; @@ -1907,8 +1906,8 @@ substitute_in_expr (tree exp, tree f, tree r) if (op0 == TREE_OPERAND (exp, 0)) return exp; - new = fold (build (code, TREE_TYPE (exp), op0, TREE_OPERAND (exp, 1), - NULL_TREE)); + new = fold (build3 (COMPONENT_REF, TREE_TYPE (exp), + op0, TREE_OPERAND (exp, 1), NULL_TREE)); } else switch (TREE_CODE_CLASS (code)) @@ -5761,16 +5760,16 @@ tree_fold_gcd (tree a, tree b) return a; if (tree_int_cst_sgn (a) == -1) - a = fold (build (MULT_EXPR, type, a, - convert (type, integer_minus_one_node))); + a = fold (build2 (MULT_EXPR, type, a, + convert (type, integer_minus_one_node))); if (tree_int_cst_sgn (b) == -1) - b = fold (build (MULT_EXPR, type, b, - convert (type, integer_minus_one_node))); + b = fold (build2 (MULT_EXPR, type, b, + convert (type, integer_minus_one_node))); while (1) { - a_mod_b = fold (build (CEIL_MOD_EXPR, type, a, b)); + a_mod_b = fold (build2 (CEIL_MOD_EXPR, type, a, b)); if (!TREE_INT_CST_LOW (a_mod_b) && !TREE_INT_CST_HIGH (a_mod_b)) |