summaryrefslogtreecommitdiff
path: root/gcc/java/class.c
diff options
context:
space:
mode:
authorphython <phython@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-18 19:10:15 +0000
committerphython <phython@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-18 19:10:15 +0000
commit7662002aa7c4a0b7ee6b7e87b40cde5a8650df2a (patch)
tree7a0442d15d00052dffd5178ca24bfb40f1386122 /gcc/java/class.c
parentedcd3631fd8276ccfa641dcd58f58d182b71684e (diff)
downloadgcc-7662002aa7c4a0b7ee6b7e87b40cde5a8650df2a.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104407 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r--gcc/java/class.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c
index a089112276e..47ae3368363 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -2380,8 +2380,8 @@ layout_class_method (tree this_class, tree super_class,
/* We generate vtable entries for final methods because they
may one day be changed to non-final. */
set_method_index (method_decl, dtable_count);
- dtable_count = fold (build2 (PLUS_EXPR, integer_type_node,
- dtable_count, integer_one_node));
+ dtable_count = fold_build2 (PLUS_EXPR, integer_type_node,
+ dtable_count, integer_one_node);
}
}