Patch: another boehm.c fix
Tom Tromey
tromey@cygnus.com
Sat Apr 22 18:26:00 GMT 2000
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;
More information about the Gcc-patches
mailing list