aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2013-04-25 10:20:57 +0930
committerAlan Modra <amodra@gcc.gnu.org>2013-04-25 10:20:57 +0930
commit87f7337481faf2ad038847155a0cb4fa6872dc77 (patch)
tree18d20275e98a352b8f61b4744e92b28839dd998a /gcc
parentcabf91cd0ee0a17e5f21a9bbf45d7853d4486dac (diff)
downloadgcc-87f7337481faf2ad038847155a0cb4fa6872dc77.zip
gcc-87f7337481faf2ad038847155a0cb4fa6872dc77.tar.gz
gcc-87f7337481faf2ad038847155a0cb4fa6872dc77.tar.bz2
rs6000.c (rs6000_secondary_reload_inner): Use replace_equiv_address_nv.
* config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use replace_equiv_address_nv. From-SVN: r198272
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/rs6000/rs6000.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f115691..7b3ff0b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2013-04-25 Alan Modra <amodra@gmail.com>
+ * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
+ replace_equiv_address_nv.
+
+2013-04-25 Alan Modra <amodra@gmail.com>
+
* config/rs6000/rs6000.c (rs6000_emit_set_long_const): Tidy.
2013-04-24 Vladimir Makarov <vmakarov@redhat.com>
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 27245db..6000bed 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -14418,7 +14418,7 @@ rs6000_secondary_reload_inner (rtx reg, rtx mem, rtx scratch, bool store_p)
/* Adjust the address if it changed. */
if (addr != XEXP (mem, 0))
{
- mem = change_address (mem, mode, addr);
+ mem = replace_equiv_address_nv (mem, addr);
if (TARGET_DEBUG_ADDR)
fprintf (stderr, "\nrs6000_secondary_reload_inner, mem adjusted.\n");
}