diff options
Diffstat (limited to 'gcc/lra-spills.c')
-rw-r--r-- | gcc/lra-spills.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/lra-spills.c b/gcc/lra-spills.c index ab33dd42412..5997b1e48f5 100644 --- a/gcc/lra-spills.c +++ b/gcc/lra-spills.c @@ -153,9 +153,7 @@ assign_mem_slot (int i) /* 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); x = adjust_address_nv (x, GET_MODE (regno_reg_rtx[i]), adjust); /* Set all of the memory attributes as appropriate for a spill. */ |