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

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

From-SVN: r33351
This commit is contained in:
Tom Tromey 2000-04-23 01:26:51 +00:00 committed by Tom Tromey
parent 0f89df67fc
commit 8a008c41a1
2 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-04-22 Tom Tromey <tromey@cygnus.com>
* boehm.c (mark_reference_fields): Only call byte_position on
non-static fields.
2000-04-22 Tom Tromey <tromey@cygnus.com>
* boehm.c (mark_reference_fields): Added `last_view_index'

View File

@ -94,11 +94,12 @@ mark_reference_fields (field, low, high, ubit,
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;