This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix change_address


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]