summaryrefslogtreecommitdiffstats
path: root/gcc/java/verify.c
diff options
context:
space:
mode:
authorapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-14 05:01:05 +0000
committerapbianco <apbianco@138bc75d-0d04-0410-961f-82ee72b054a4>2000-03-14 05:01:05 +0000
commit4654e794323c05fcfabee95cb2bf334fb30a3873 (patch)
treebf1619873e76c17441a1423f1eaba6a4a64f054a /gcc/java/verify.c
parent86220f453c768a8deb58678e4010a892011a2cce (diff)
downloadppe42-gcc-4654e794323c05fcfabee95cb2bf334fb30a3873.tar.gz
ppe42-gcc-4654e794323c05fcfabee95cb2bf334fb30a3873.zip
Added Java 1.1 language features.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32517 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/verify.c')
-rw-r--r--gcc/java/verify.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/java/verify.c b/gcc/java/verify.c
index 97c78eca3cb..3aff5e45955 100644
--- a/gcc/java/verify.c
+++ b/gcc/java/verify.c
@@ -940,11 +940,10 @@ verify_jvm_instructions (jcf, byte_ops, length)
pop_argument_types (TYPE_ARG_TYPES (method_type));
/* Can't invoke <clinit> */
- if (method_name == clinit_identifier_node)
+ if (ID_CLINIT_P (method_name))
VERIFICATION_ERROR ("invoke opcode can't invoke <clinit>");
/* Apart invokespecial, can't invoke <init> */
- if (op_code != OPCODE_invokespecial
- && method_name == init_identifier_node)
+ if (op_code != OPCODE_invokespecial && ID_INIT_P (method_name))
VERIFICATION_ERROR ("invoke opcode can't invoke <init>");
if (op_code != OPCODE_invokestatic)
OpenPOWER on IntegriCloud