summaryrefslogtreecommitdiff
path: root/gcc/config/romp/romp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/config/romp/romp.c')
-rw-r--r--gcc/config/romp/romp.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/gcc/config/romp/romp.c b/gcc/config/romp/romp.c
index 7aedeb60024..8cabb46e825 100644
--- a/gcc/config/romp/romp.c
+++ b/gcc/config/romp/romp.c
@@ -269,12 +269,7 @@ memory_offset_in_range_p (op, mode, low, high)
while (GET_CODE (op) == SUBREG)
{
- offset += SUBREG_WORD (op) * UNITS_PER_WORD;
-#if BYTES_BIG_ENDIAN
- offset -= (min (UNITS_PER_WORD, GET_MODE_SIZE (GET_MODE (op)))
- - min (UNITS_PER_WORD,
- GET_MODE_SIZE (GET_MODE (SUBREG_REG (op)))));
-#endif
+ offset += SUBREG_BYTE (op);
op = SUBREG_REG (op);
}