Commit 8a008c41 by Tom Tromey Committed by Tom Tromey

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
parent 0f89df67
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'
argument. Use DECL_FIELD_OFFSET to determine field's offset.
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment