aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r--gcc/java/decl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index d07f83e..c388539 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -810,8 +810,9 @@ java_init_decl_processing (void)
0, NOT_BUILT_IN, NULL, NULL_TREE);
DECL_IS_MALLOC (soft_anewarray_node) = 1;
- t = tree_cons (NULL_TREE, ptr_type_node,
- tree_cons (NULL_TREE, int_type_node, endlink));
+ /* There is no endlink here because _Jv_NewMultiArray is a varargs
+ function. */
+ t = tree_cons (NULL_TREE, ptr_type_node, int_type_node);
soft_multianewarray_node
= builtin_function ("_Jv_NewMultiArray",
build_function_type (ptr_type_node, t),