diff options
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r-- | gcc/reload1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/reload1.c b/gcc/reload1.c index 5851dbfb931..95f974fdfaa 100644 --- a/gcc/reload1.c +++ b/gcc/reload1.c @@ -915,9 +915,9 @@ reload (rtx first, int global) if (strict_memory_address_p (GET_MODE (regno_reg_rtx[i]), XEXP (x, 0))) reg_equiv_mem[i] = x, reg_equiv_address[i] = 0; - else if ((CONSTANT_P (x) - && LEGITIMATE_CONSTANT_P (x) - && PREFERRED_RELOAD_CLASS (x, class) != NO_REGS) + else if ((CONSTANT_P (XEXP (x, 0)) + && LEGITIMATE_CONSTANT_P (XEXP (x, 0)) + && PREFERRED_RELOAD_CLASS (XEXP (x, 0), class) != NO_REGS) || (GET_CODE (XEXP (x, 0)) == REG && REGNO (XEXP (x, 0)) < FIRST_PSEUDO_REGISTER) || (GET_CODE (XEXP (x, 0)) == PLUS |