jcf-write.c (generate_bytecode_insns case SWITCH_EXPR): Fix thinko: If a single case...
authorPer Bothner <per@bothner.com>
Thu, 26 Apr 2001 18:32:22 +0000 (11:32 -0700)
committerPer Bothner <bothner@gcc.gnu.org>
Thu, 26 Apr 2001 18:32:22 +0000 (11:32 -0700)
commit8789b9fa5c893b2eefb47acb5ec84eb46128b057
treee624daa90013162473950afc7f26bad2458e20b3
parent5acea42bfb17b59aff01ce77fe63d880b4ef5878
jcf-write.c (generate_bytecode_insns case SWITCH_EXPR): Fix thinko: If a single case, use if_icmpeq, not ifeq.

* jcf-write.c (generate_bytecode_insns case SWITCH_EXPR):
Fix thinko:  If a single case, use if_icmpeq, not ifeq.

* constants.c (find_methodref_with_class_index):  New function.
(find_methodref_index):  Use find_methodref_with_class_index.
* java-tree.h (find_methodref_with_class_index):  New declaration.
* jcf-write.c (generate_bytecode_insns case CALL_EXPR):  Don't change
DECL_CONTEXT, instead use new find_methodref_with_class_index function.
If context changed from interface to class, don't use invokeinterface.

From-SVN: r41601
gcc/java/ChangeLog
gcc/java/constants.c
gcc/java/java-tree.h
gcc/java/jcf-write.c