OSDN Git Service

2005-12-02 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Dec 2005 17:04:41 +0000 (17:04 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 2 Dec 2005 17:04:41 +0000 (17:04 +0000)
* java-gimplify.c (java_gimplify_labeled_block_expr): Use
buildN instead of build.
* class.c (finish_class): Likewise.
* expr.c (java_create_object): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@107904 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/java/ChangeLog
gcc/java/class.c
gcc/java/expr.c
gcc/java/java-gimplify.c

index a830972..d7b9c97 100644 (file)
@@ -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:
index eb9ea71..6f724f4 100644 (file)
@@ -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;
index 4c2f3f4..81bd6fa 100644 (file)
@@ -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
index e5d7a43..6c1a366 100644 (file)
@@ -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;
 }