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/dojump.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/dojump.c')
-rw-r--r-- | gcc/dojump.c | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/gcc/dojump.c b/gcc/dojump.c index 96493f3..ab81d04 100644 --- a/gcc/dojump.c +++ b/gcc/dojump.c @@ -219,18 +219,19 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label) a test and can be longer if the test is eliminated. */ case PLUS_EXPR: /* Reduce to minus. */ - exp = build (MINUS_EXPR, TREE_TYPE (exp), - TREE_OPERAND (exp, 0), - fold (build1 (NEGATE_EXPR, TREE_TYPE (TREE_OPERAND (exp, 1)), - TREE_OPERAND (exp, 1)))); + exp = build2 (MINUS_EXPR, TREE_TYPE (exp), + TREE_OPERAND (exp, 0), + fold (build1 (NEGATE_EXPR, + TREE_TYPE (TREE_OPERAND (exp, 1)), + TREE_OPERAND (exp, 1)))); /* Process as MINUS. */ #endif case MINUS_EXPR: /* Nonzero iff operands of minus differ. */ - do_compare_and_jump (build (NE_EXPR, TREE_TYPE (exp), - TREE_OPERAND (exp, 0), - TREE_OPERAND (exp, 1)), + do_compare_and_jump (build2 (NE_EXPR, TREE_TYPE (exp), + TREE_OPERAND (exp, 0), + TREE_OPERAND (exp, 1)), NE, NE, if_false_label, if_true_label); break; @@ -251,8 +252,9 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label) && prefer_and_bit_test (TYPE_MODE (argtype), TREE_INT_CST_LOW (shift))) { - do_jump (build (BIT_AND_EXPR, argtype, arg, - fold (build (LSHIFT_EXPR, argtype, one, shift))), + do_jump (build2 (BIT_AND_EXPR, argtype, arg, + fold (build2 (LSHIFT_EXPR, argtype, + one, shift))), if_false_label, if_true_label); break; } @@ -381,15 +383,15 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label) tree exp1 = save_expr (TREE_OPERAND (exp, 1)); do_jump (fold - (build (TRUTH_ANDIF_EXPR, TREE_TYPE (exp), - fold (build (EQ_EXPR, TREE_TYPE (exp), + (build2 (TRUTH_ANDIF_EXPR, TREE_TYPE (exp), + fold (build2 (EQ_EXPR, TREE_TYPE (exp), fold (build1 (REALPART_EXPR, TREE_TYPE (inner_type), exp0)), fold (build1 (REALPART_EXPR, TREE_TYPE (inner_type), exp1)))), - fold (build (EQ_EXPR, TREE_TYPE (exp), + fold (build2 (EQ_EXPR, TREE_TYPE (exp), fold (build1 (IMAGPART_EXPR, TREE_TYPE (inner_type), exp0)), @@ -421,15 +423,15 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label) tree exp1 = save_expr (TREE_OPERAND (exp, 1)); do_jump (fold - (build (TRUTH_ORIF_EXPR, TREE_TYPE (exp), - fold (build (NE_EXPR, TREE_TYPE (exp), + (build2 (TRUTH_ORIF_EXPR, TREE_TYPE (exp), + fold (build2 (NE_EXPR, TREE_TYPE (exp), fold (build1 (REALPART_EXPR, TREE_TYPE (inner_type), exp0)), fold (build1 (REALPART_EXPR, TREE_TYPE (inner_type), exp1)))), - fold (build (NE_EXPR, TREE_TYPE (exp), + fold (build2 (NE_EXPR, TREE_TYPE (exp), fold (build1 (IMAGPART_EXPR, TREE_TYPE (inner_type), exp0)), @@ -563,9 +565,9 @@ do_jump (tree exp, rtx if_false_label, rtx if_true_label) /* If the target doesn't support combined unordered compares, decompose into two comparisons. */ - cmp0 = fold (build (tcode1, TREE_TYPE (exp), op0, op1)); - cmp1 = fold (build (tcode2, TREE_TYPE (exp), op0, op1)); - exp = build (TRUTH_ORIF_EXPR, TREE_TYPE (exp), cmp0, cmp1); + cmp0 = fold (build2 (tcode1, TREE_TYPE (exp), op0, op1)); + cmp1 = fold (build2 (tcode2, TREE_TYPE (exp), op0, op1)); + exp = build2 (TRUTH_ORIF_EXPR, TREE_TYPE (exp), cmp0, cmp1); do_jump (exp, if_false_label, if_true_label); } } |