diff options
author | Roger Sayle <roger@eyesopen.com> | 2004-07-18 13:17:03 +0000 |
---|---|---|
committer | Roger Sayle <sayle@gcc.gnu.org> | 2004-07-18 13:17:03 +0000 |
commit | 94cdeb1ad33b77f10f4cbc56bbce5d5f9c6b703c (patch) | |
tree | 1f13dfd1858fc89f9b7558e0830a0adc266edb2b /gcc/java/builtins.c | |
parent | 3d23e0184a2917a9e5b1ef56b7a3c99d6398f08d (diff) | |
download | gcc-94cdeb1ad33b77f10f4cbc56bbce5d5f9c6b703c.zip gcc-94cdeb1ad33b77f10f4cbc56bbce5d5f9c6b703c.tar.gz gcc-94cdeb1ad33b77f10f4cbc56bbce5d5f9c6b703c.tar.bz2 |
builtins.c (max_builtin, [...]): Replace calls to build with buildN.
* builtins.c (max_builtin, min_builtin,
java_build_function_call_expr): Replace calls to build with buildN.
* class.c (build_class_ref, build_static_field_ref,
get_dispatch_table, make_class_data, layout_class_method): Likewise.
* constants.c (build_ref_from_constant_pool): Likewise.
* decl.c (update_aliases, push_jvm_slot, poplevel, finish_method,
add_stmt_to_compound): Likewise.
* except.c (build_exception_object_ref, expand_end_java_handler):
Likewise.
* java-gimplify.c (java_gimplify_case_expr,
java_gimplify_default_expr, java_gimplify_block,
java_gimplify_new_array_init, java_gimplify_try_expr): Likewise.
* jcf-write.c (generate_bytecode_insns): Likewise.
* typeck.c (convert_ieee_real_to_integer): Likewise.
From-SVN: r84894
Diffstat (limited to 'gcc/java/builtins.c')
-rw-r--r-- | gcc/java/builtins.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/java/builtins.c b/gcc/java/builtins.c index 77f0c58..8068c04 100644 --- a/gcc/java/builtins.c +++ b/gcc/java/builtins.c @@ -96,17 +96,17 @@ static GTY(()) struct builtin_record java_builtins[] = static tree max_builtin (tree method_return_type, tree method_arguments) { - return fold (build (MAX_EXPR, method_return_type, - TREE_VALUE (method_arguments), - TREE_VALUE (TREE_CHAIN (method_arguments)))); + return fold (build2 (MAX_EXPR, method_return_type, + TREE_VALUE (method_arguments), + TREE_VALUE (TREE_CHAIN (method_arguments)))); } static tree min_builtin (tree method_return_type, tree method_arguments) { - return fold (build (MIN_EXPR, method_return_type, - TREE_VALUE (method_arguments), - TREE_VALUE (TREE_CHAIN (method_arguments)))); + return fold (build2 (MIN_EXPR, method_return_type, + TREE_VALUE (method_arguments), + TREE_VALUE (TREE_CHAIN (method_arguments)))); } static tree @@ -123,8 +123,8 @@ java_build_function_call_expr (tree fn, tree arglist) tree call_expr; call_expr = build1 (ADDR_EXPR, build_pointer_type (TREE_TYPE (fn)), fn); - call_expr = build (CALL_EXPR, TREE_TYPE (TREE_TYPE (fn)), - call_expr, arglist, NULL_TREE); + call_expr = build3 (CALL_EXPR, TREE_TYPE (TREE_TYPE (fn)), + call_expr, arglist, NULL_TREE); TREE_SIDE_EFFECTS (call_expr) = 1; return fold (call_expr); } |