summaryrefslogtreecommitdiff
path: root/gcc/reload1.c
diff options
context:
space:
mode:
authorechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-18 00:40:42 +0000
committerechristo <echristo@138bc75d-0d04-0410-961f-82ee72b054a4>2003-11-18 00:40:42 +0000
commitcab8604fa27e2d8fb5f60ae4bc61e1a337756108 (patch)
tree9170ed45008d5321d6f929e3e6e8222087150df1 /gcc/reload1.c
parentbce0304bfc083fcc73e0d6c6059aca982fbf340f (diff)
downloadgcc-cab8604fa27e2d8fb5f60ae4bc61e1a337756108.tar.gz
2003-11-17 Eric Christopher <echristo@redhat.com>
* reload1.c (reload): Fix previous change. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73687 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload1.c')
-rw-r--r--gcc/reload1.c6
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