diff options
author | James A. Morrison <phython@gcc.gnu.org> | 2005-09-18 19:10:15 +0000 |
---|---|---|
committer | James A. Morrison <phython@gcc.gnu.org> | 2005-09-18 19:10:15 +0000 |
commit | c298ec4e20cdb97f611f92920c7b7ac2a21820e4 (patch) | |
tree | 7a0442d15d00052dffd5178ca24bfb40f1386122 /gcc/java/parse.y | |
parent | 2c05c0dad5f65ca5e17cfd16429d686fada2221c (diff) | |
download | gcc-c298ec4e20cdb97f611f92920c7b7ac2a21820e4.zip gcc-c298ec4e20cdb97f611f92920c7b7ac2a21820e4.tar.gz gcc-c298ec4e20cdb97f611f92920c7b7ac2a21820e4.tar.bz2 |
builtins.c (max_builtin, [...]): Use fold_buildN.
2005-09-18 James A. Morrison <phython@gcc.gnu.org>
* builtins.c (max_builtin, min_builtin, abs_builtin,
java_build_function_call_expr): Use fold_buildN.
* class.c (layout_class_method): Likewise.
* expr.c (java_truthvalue_conversion, build_java_jsr,
build_java_arrayaccess, expand_java_arrayload, expand_iinc,
build_java_binop, build_field_ref, expand_compare,
build_known_method_ref, build_invokevirtual,
process_jvm_instruction): Likewise.
* parse.y (patch_binop, patch_exit_expr): Likewise.
* typeck.c (convert_ieee_real_to_integer): Likewise.
(convert): Don't call fold after convert_ieee_real_to_integer.
From-SVN: r104407
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 4d6a37f..b728554 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -13643,11 +13643,11 @@ patch_binop (tree node, tree wfl_op1, tree wfl_op2, int folding) /* Shift int only up to 0x1f and long up to 0x3f */ if (prom_type == int_type_node) - op2 = fold (build2 (BIT_AND_EXPR, int_type_node, op2, - build_int_cst (NULL_TREE, 0x1f))); + op2 = fold_build2 (BIT_AND_EXPR, int_type_node, op2, + build_int_cst (NULL_TREE, 0x1f)); else - op2 = fold (build2 (BIT_AND_EXPR, int_type_node, op2, - build_int_cst (NULL_TREE, 0x3f))); + op2 = fold_build2 (BIT_AND_EXPR, int_type_node, op2, + build_int_cst (NULL_TREE, 0x3f)); /* The >>> operator is a >> operating on unsigned quantities */ if (code == URSHIFT_EXPR && (folding || ! flag_emit_class_files)) @@ -15422,7 +15422,7 @@ patch_exit_expr (tree node) /* Now we know things are allright, invert the condition, fold and return */ TREE_OPERAND (node, 0) = - fold (build1 (TRUTH_NOT_EXPR, boolean_type_node, expression)); + fold_build1 (TRUTH_NOT_EXPR, boolean_type_node, expression); if (! integer_zerop (TREE_OPERAND (node, 0)) && ctxp->current_loop != NULL_TREE |