summaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-20 17:38:23 +0000
committerian <ian@138bc75d-0d04-0410-961f-82ee72b054a4>2009-04-20 17:38:23 +0000
commit0747a66df25d79007ea762490a69186781f46716 (patch)
treecc052af536ff9527f3b69fa7d735850c463e7e32 /gcc/java
parentd62fb8de7bb23385b25bd426e6349ea70923f7a5 (diff)
downloadgcc-0747a66df25d79007ea762490a69186781f46716.tar.gz
* verify-impl.c (verify_instructions_0): Add cast to enum type.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146446 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog4
-rw-r--r--gcc/java/verify-impl.c6
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index c4479f28bec..cedb5f95392 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,7 @@
+2009-04-18 Ian Lance Taylor <iant@google.com>
+
+ * verify-impl.c (verify_instructions_0): Add cast to enum type.
+
2009-04-09 Paolo Bonzini <bonzini@gnu.org>
* builtins.c (compareAndSwapLong_builtin,
diff --git a/gcc/java/verify-impl.c b/gcc/java/verify-impl.c
index 2e69359913c..5c4de456bbd 100644
--- a/gcc/java/verify-impl.c
+++ b/gcc/java/verify-impl.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008
+/* Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009
Free Software Foundation
This file is part of libgcj.
@@ -3025,13 +3025,15 @@ verify_instructions_0 (void)
case op_newarray:
{
int atype = get_byte ();
+ vfy_jclass k;
type t;
/* We intentionally have chosen constants to make this
valid. */
if (atype < boolean_type || atype > long_type)
verify_fail_pc ("type not primitive", vfr->start_PC);
pop_type (int_type);
- init_type_from_class (&t, construct_primitive_array_type (atype));
+ k = construct_primitive_array_type ((type_val) atype);
+ init_type_from_class (&t, k);
push_type_t (t);
}
break;