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]

Patch: another boehm.c fix


Bryce discovered another bug in my fix to boehm.c.
I'm checking in this fix.

2000-04-22  Tom Tromey  <tromey@cygnus.com>

	* boehm.c (mark_reference_fields): Only call byte_position on
	non-static fields.

Tom

Index: boehm.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/boehm.c,v
retrieving revision 1.4
diff -u -r1.4 boehm.c
--- boehm.c	2000/04/22 21:44:58	1.4
+++ boehm.c	2000/04/23 01:25:00
@@ -94,11 +94,12 @@
 
   for (; field != NULL_TREE; field = TREE_CHAIN (field))
     {
-      HOST_WIDE_INT offset = tree_low_cst (byte_position (field), 1);
+      HOST_WIDE_INT offset;
 
       if (FIELD_STATIC (field))
 	continue;
 
+      offset = tree_low_cst (byte_position (field), 1);
       if (JREFERENCE_TYPE_P (TREE_TYPE (field)))
 	{
 	  unsigned int count;

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