aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2004-01-29 19:52:28 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2004-01-29 19:52:28 +0100
commit64fc7c0047fdf1ec82f68ac6636cc41bfb6f752e (patch)
tree2e09f49e3a04a8996c86df29b48f027cce09f641 /gcc/emit-rtl.c
parented672aa8312eec4e170852b52d6d0c9b63c2b542 (diff)
downloadgcc-64fc7c0047fdf1ec82f68ac6636cc41bfb6f752e.zip
gcc-64fc7c0047fdf1ec82f68ac6636cc41bfb6f752e.tar.gz
gcc-64fc7c0047fdf1ec82f68ac6636cc41bfb6f752e.tar.bz2
emit-rtl.c (change_address): Use XEXP (memref, 0) instead of addr when creating MEM copy.
* emit-rtl.c (change_address): Use XEXP (memref, 0) instead of addr when creating MEM copy. From-SVN: r76888
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index b1429da..dec49462 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -1886,7 +1886,7 @@ change_address (rtx memref, enum machine_mode mode, rtx addr)
&& MEM_ALIGN (memref) == align))
return new;
- new = gen_rtx_MEM (mmode, addr);
+ new = gen_rtx_MEM (mmode, XEXP (memref, 0));
MEM_COPY_ATTRIBUTES (new, memref);
}