summaryrefslogtreecommitdiff
path: root/gcc/reload.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-21 17:21:30 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-21 17:21:30 +0000
commit25dd612e84678972313516b9b935fa3959a2cd60 (patch)
tree24e4c33ad0ca5ee52147f1c54c49fc8e17575f21 /gcc/reload.c
parent054f015a946adc4e35050757613873fd8ed92178 (diff)
downloadgcc-25dd612e84678972313516b9b935fa3959a2cd60.tar.gz
2009-11-21 Basile Starynkevitch <basile@starynkevitch.net>
MELT branch merged with trunk rev 154407 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/melt-branch@154408 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/reload.c')
-rw-r--r--gcc/reload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index 3333697f2e0..a7791c2869e 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -5239,7 +5239,7 @@ find_reloads_address (enum machine_mode mode, rtx *memrefloc, rtx ad,
if (CONSTANT_P (ad) && ! strict_memory_address_addr_space_p (mode, ad, as))
{
enum machine_mode address_mode = GET_MODE (ad);
- if (ad == VOIDmode)
+ if (address_mode == VOIDmode)
address_mode = targetm.addr_space.address_mode (as);
/* If AD is an address in the constant pool, the MEM rtx may be shared.