This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Patch: another boehm.c fix
- To: Gcc Patch List <gcc-patches at gcc dot gnu dot org>
- Subject: Patch: another boehm.c fix
- From: Tom Tromey <tromey at cygnus dot com>
- Date: 22 Apr 2000 19:29:14 -0600
- Reply-To: tromey at cygnus dot com
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;