diff options
author | Andrew Haley <aph@redhat.com> | 2003-01-14 13:31:11 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2003-01-14 13:31:11 +0000 |
commit | 50cbc6057f519f2d0af68c95cf37e45d396009c2 (patch) | |
tree | adf750741436d54577476b5594ab5c705dbfa822 /gcc/java/decl.c | |
parent | 4d77fda24b78067384db548c55e5cb7b0bce0e44 (diff) | |
download | gcc-50cbc6057f519f2d0af68c95cf37e45d396009c2.zip gcc-50cbc6057f519f2d0af68c95cf37e45d396009c2.tar.gz gcc-50cbc6057f519f2d0af68c95cf37e45d396009c2.tar.bz2 |
[multiple changes]
2003-01-14 Andrew Haley <aph@redhat.com>
* decl.c (java_init_decl_processing): _Jv_NewMultiArray is a
varargs function -- correct.
* parse.y (patch_assignment): Copy the rhs of an assignment into a
temporary if the RHS is a reference.
2003-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Make-lang.in (keyword.h): Pass "-L ANSI-C" to gperf.
* keyword.h: Regenerated.
* All Files: Convert to ISO C style function definitions.
From-SVN: r61281
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r-- | gcc/java/decl.c | 5 |
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), |