This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[BC] Patch: FYI: avoid verifier failures
- From: Tom Tromey <tromey at redhat dot com>
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Cc: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 19 Oct 2004 14:24:12 -0600
- Subject: [BC] Patch: FYI: avoid verifier failures
- Reply-to: tromey at redhat dot com
I'm checking this in on the BC branch.
We weren't initializing some fields when wrapping a class.
This lead to bogus verifier failures.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* verify-impl.c (init_type_from_class): Set is_resolved and
ref_next on new ref_intersection.
(init_type_from_string): Likewise.
Index: verify-impl.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/java/Attic/verify-impl.c,v
retrieving revision 1.1.2.6
diff -u -r1.1.2.6 verify-impl.c
--- verify-impl.c 18 Oct 2004 22:06:02 -0000 1.1.2.6
+++ verify-impl.c 19 Oct 2004 20:23:27 -0000
@@ -634,7 +634,9 @@
{
t->key = reference_type;
t->klass = make_ref ();
+ t->klass->is_resolved = true;
t->klass->data.klass = k;
+ t->klass->ref_next = NULL;
t->pc = UNINIT;
}
@@ -651,7 +653,9 @@
{
t->key = reference_type;
t->klass = make_ref ();
+ t->klass->is_resolved = false;
t->klass->data.name = n;
+ t->klass->ref_next = NULL;
t->pc = UNINIT;
}