diff options
Diffstat (limited to 'gcc/config/m32c/m32c.c')
-rw-r--r-- | gcc/config/m32c/m32c.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/config/m32c/m32c.c b/gcc/config/m32c/m32c.c index 57586474d9c..79b03fa0650 100644 --- a/gcc/config/m32c/m32c.c +++ b/gcc/config/m32c/m32c.c @@ -1178,7 +1178,8 @@ m32c_return_addr_rtx (int count) } ra_mem = - gen_rtx_MEM (mode, plus_constant (gen_rtx_REG (Pmode, FP_REGNO), offset)); + gen_rtx_MEM (mode, plus_constant (Pmode, gen_rtx_REG (Pmode, FP_REGNO), + offset)); return copy_to_mode_reg (mode, ra_mem); } @@ -4178,7 +4179,8 @@ m32c_expand_insv (rtx *operands) && GET_CODE (op0) == MEM) { /* We are little endian. */ - rtx new_mem = gen_rtx_MEM (QImode, plus_constant (XEXP (op0, 0), 1)); + rtx new_mem = gen_rtx_MEM (QImode, plus_constant (Pmode, + XEXP (op0, 0), 1)); MEM_COPY_ATTRIBUTES (new_mem, op0); mask >>= 8; } |