java-gimplify.c (java_gimplify_labeled_block_expr): Use buildN instead of build.
2005-12-02 Richard Guenther <rguenther@suse.de> * java-gimplify.c (java_gimplify_labeled_block_expr): Use buildN instead of build. * class.c (finish_class): Likewise. * expr.c (java_create_object): Likewise. From-SVN: r107904
This commit is contained in:
parent
d17791d66d
commit
1c00c223e9
|
@ -1,3 +1,10 @@
|
|||
2005-12-02 Richard Guenther <rguenther@suse.de>
|
||||
|
||||
* java-gimplify.c (java_gimplify_labeled_block_expr): Use
|
||||
buildN instead of build.
|
||||
* class.c (finish_class): Likewise.
|
||||
* expr.c (java_create_object): Likewise.
|
||||
|
||||
2005-11-28 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
PR java/18278:
|
||||
|
|
|
@ -1917,7 +1917,7 @@ finish_class (void)
|
|||
tree verify_method = TYPE_VERIFY_METHOD (output_class);
|
||||
DECL_SAVED_TREE (verify_method)
|
||||
= add_stmt_to_compound (DECL_SAVED_TREE (verify_method), void_type_node,
|
||||
build (RETURN_EXPR, void_type_node, NULL));
|
||||
build1 (RETURN_EXPR, void_type_node, NULL));
|
||||
java_genericize (verify_method);
|
||||
cgraph_finalize_function (verify_method, false);
|
||||
TYPE_ASSERTIONS (current_class) = NULL;
|
||||
|
|
|
@ -1312,10 +1312,10 @@ java_create_object (tree type)
|
|||
? alloc_object_node
|
||||
: alloc_no_finalizer_node);
|
||||
|
||||
return build (CALL_EXPR, promote_type (type),
|
||||
build_address_of (alloc_node),
|
||||
build_tree_list (NULL_TREE, build_class_ref (type)),
|
||||
NULL_TREE);
|
||||
return build3 (CALL_EXPR, promote_type (type),
|
||||
build_address_of (alloc_node),
|
||||
build_tree_list (NULL_TREE, build_class_ref (type)),
|
||||
NULL_TREE);
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -186,9 +186,9 @@ java_gimplify_labeled_block_expr (tree expr)
|
|||
tree t;
|
||||
|
||||
DECL_CONTEXT (label) = current_function_decl;
|
||||
t = build (LABEL_EXPR, void_type_node, label);
|
||||
t = build1 (LABEL_EXPR, void_type_node, label);
|
||||
if (body != NULL_TREE)
|
||||
t = build (COMPOUND_EXPR, void_type_node, body, t);
|
||||
t = build2 (COMPOUND_EXPR, void_type_node, body, t);
|
||||
return t;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue