Commit adfec6a6 by Tom Tromey Committed by Tom Tromey

re PR java/19921 (wrong argument count for invokeInterface with new multidimensional array)

gcc/java:
	PR java/19921:
	* jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Note the
	stack effect of multianewarray.

libjava:
	For PR java/19929:
	* testsuite/libjava.lang/PR19929.out: New file.
	* testsuite/libjava.lang/PR19929.java: New file.

From-SVN: r95041
parent 9a06c1cb
2005-02-14 Tom Tromey <tromey@redhat.com>
PR java/19921:
* jcf-write.c (generate_bytecode_insns) <CALL_EXPR>: Note the
stack effect of multianewarray.
2005-02-14 Andrew Haley <aph@redhat.com>
PR java/19907
......
......@@ -2572,6 +2572,7 @@ generate_bytecode_insns (tree exp, int target, struct jcf_partial *state)
OP1 (OPCODE_multianewarray);
OP2 (index);
OP1 (ndims);
NOTE_POP (ndims - 1);
break;
}
else if (f == soft_anewarray_node)
......
2005-02-14 Tom Tromey <tromey@redhat.com>
For PR java/19929:
* testsuite/libjava.lang/PR19929.out: New file.
* testsuite/libjava.lang/PR19929.java: New file.
2005-02-14 Anthony Green <green@redhat.com>
PR libgcj/18116
......
interface I {
void f(Object x);
}
class PR19929 {
static void g(I i) {
// gcj used to create invalid bytecode for this.
i.f(new Object[1][1]);
}
public static void main(String[] args) { }
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment