This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix change_address
- From: Jakub Jelinek <jakub at redhat dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 29 Jan 2004 13:59:08 -0500
- Subject: [PATCH] Fix change_address
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
This popped up on s390, caused by my last patch.
Some callers of change_address pass NULL as addr, and change_address_1
handles this, but my change_address change did not.
Commited as obvious.
2004-01-29 Jakub Jelinek <jakub@redhat.com>
* emit-rtl.c (change_address): Use XEXP (memref, 0) instead
of addr when creating MEM copy.
--- gcc/emit-rtl.c.jj 2004-01-29 09:03:57.000000000 +0100
+++ gcc/emit-rtl.c 2004-01-29 15:14:52.000000000 +0100
@@ -1886,7 +1886,7 @@ change_address (rtx memref, enum machine
&& 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);
}
Jakub