aboutsummaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 5e200b94ebb..27f37166b03 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -2251,8 +2251,7 @@ alter_reg (int i, int from_reg, bool dont_share_p)
/* On a big endian machine, the "address" of the slot
is the address of the low part that fits its inherent mode. */
- if (BYTES_BIG_ENDIAN && inherent_size < total_size)
- adjust += (total_size - inherent_size);
+ adjust += subreg_size_lowpart_offset (inherent_size, total_size);
/* If we have any adjustment to make, or if the stack slot is the
wrong mode, make a new stack slot. */