aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/except.c
diff options
context:
space:
mode:
authorRoger Sayle <roger@eyesopen.com>2004-07-18 13:17:03 +0000
committerRoger Sayle <sayle@gcc.gnu.org>2004-07-18 13:17:03 +0000
commit94cdeb1ad33b77f10f4cbc56bbce5d5f9c6b703c (patch)
tree1f13dfd1858fc89f9b7558e0830a0adc266edb2b /gcc/java/except.c
parent3d23e0184a2917a9e5b1ef56b7a3c99d6398f08d (diff)
downloadgcc-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/except.c')
-rw-r--r--gcc/java/except.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/java/except.c b/gcc/java/except.c
index 91f741f..b45f79a 100644
--- a/gcc/java/except.c
+++ b/gcc/java/except.c
@@ -412,9 +412,9 @@ build_exception_object_ref (tree type)
/* Java only passes object via pointer and doesn't require adjusting.
The java object is immediately before the generic exception header. */
- obj = build (EXC_PTR_EXPR, build_pointer_type (type));
- obj = build (MINUS_EXPR, TREE_TYPE (obj), obj,
- TYPE_SIZE_UNIT (TREE_TYPE (obj)));
+ obj = build0 (EXC_PTR_EXPR, build_pointer_type (type));
+ obj = build2 (MINUS_EXPR, TREE_TYPE (obj), obj,
+ TYPE_SIZE_UNIT (TREE_TYPE (obj)));
obj = build1 (INDIRECT_REF, type, obj);
return obj;
@@ -441,11 +441,11 @@ expand_end_java_handler (struct eh_range *range)
type = prepare_eh_table_type (type);
{
- tree catch_expr
- = build (CATCH_EXPR, void_type_node, type,
- build (GOTO_EXPR, void_type_node, TREE_VALUE (handler)));
- tree try_catch_expr = build (TRY_CATCH_EXPR, void_type_node,
- *get_stmts (), catch_expr);
+ tree catch_expr = build2 (CATCH_EXPR, void_type_node, type,
+ build1 (GOTO_EXPR, void_type_node,
+ TREE_VALUE (handler)));
+ tree try_catch_expr = build2 (TRY_CATCH_EXPR, void_type_node,
+ *get_stmts (), catch_expr);
*get_stmts () = try_catch_expr;
}
}