diff options
author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-23 01:26:51 +0000 |
---|---|---|
committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-04-23 01:26:51 +0000 |
commit | eccca0e0c67406ff5a86d5169708b309e6b37ab2 (patch) | |
tree | e65a3a7cf72dad61f55620f174cb66946510f484 /gcc/java/boehm.c | |
parent | fdaea7a20d303496fa4dca869aeaa7c5a6fad9db (diff) | |
download | gcc-eccca0e0c67406ff5a86d5169708b309e6b37ab2.tar.gz |
* boehm.c (mark_reference_fields): Only call byte_position on
non-static fields.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33351 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java/boehm.c')
-rw-r--r-- | gcc/java/boehm.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/java/boehm.c b/gcc/java/boehm.c index 237158d2fd0..1a644875eb2 100644 --- a/gcc/java/boehm.c +++ b/gcc/java/boehm.c @@ -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; |