This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[BC] Patch: FYI: avoid verifier failures


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;
 }
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]