aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-11-17 16:11:44 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2009-11-17 16:11:44 +0000
commit263839d33b9fc3c1145b70c957ed733765661381 (patch)
tree4caf22148834e74b8593685e67fc72e5f66e3332
parent9870fe4f883ad20482ade6a4044657d738daa337 (diff)
downloadgcc-263839d33b9fc3c1145b70c957ed733765661381.zip
gcc-263839d33b9fc3c1145b70c957ed733765661381.tar.gz
gcc-263839d33b9fc3c1145b70c957ed733765661381.tar.bz2
* reload.c (find_reloads_address): Fix typo.
From-SVN: r154253
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/reload.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 49c55a4..58ce8e4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+ * reload.c (find_reloads_address): Fix typo.
+
+2009-11-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
* config/spu/spu.c (get_pic_reg): Use LAST_ARG_REGNUM as PIC
registers in leaf functions if possible.
diff --git a/gcc/reload.c b/gcc/reload.c
index 3333697..a7791c2 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.