diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index 0b2337d1873..ddb7d56919d 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,8 @@ +2000-01-09 Anthony Green + + * jcf-write.c (generate_bytecode_insns): Emit invokeinterface + bytecodes in the correct order. + 2000-01-09 Kaveh R. Ghazi * Makefile.in (jcf-dump, gcjh): Move ../errors.o before $(LIBS). diff --git a/gcc/java/jcf-write.c b/gcc/java/jcf-write.c index 98436f2e632..0ddfa9ee374 100644 --- a/gcc/java/jcf-write.c +++ b/gcc/java/jcf-write.c @@ -2509,6 +2509,11 @@ generate_bytecode_insns (exp, target, state) else OP1 (OPCODE_invokevirtual); OP2 (index); + if (interface) + { + OP1 (nargs); + OP1 (0); + } f = TREE_TYPE (TREE_TYPE (f)); if (TREE_CODE (f) != VOID_TYPE) { @@ -2518,11 +2523,6 @@ generate_bytecode_insns (exp, target, state) else NOTE_PUSH (size); } - if (interface) - { - OP1 (nargs); - OP1 (0); - } break; } }