summaryrefslogtreecommitdiff
path: root/gcc/explow.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-04 02:32:25 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2001-07-04 02:32:25 +0000
commitf720f386fac29ec0d8d913d36ebe32b53160bd08 (patch)
tree764b04902c76a690613dc1bf1e3cca54862b9ab8 /gcc/explow.c
parenta42e6220bed20791d2b7a411083781990d4425a5 (diff)
downloadgcc-f720f386fac29ec0d8d913d36ebe32b53160bd08.tar.gz
Install correct hunks
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@43746 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/explow.c')
-rw-r--r--gcc/explow.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/explow.c b/gcc/explow.c
index 778b9719bf6..1acb834709a 100644
--- a/gcc/explow.c
+++ b/gcc/explow.c
@@ -610,12 +610,10 @@ validize_mem (ref)
{
if (GET_CODE (ref) != MEM)
return ref;
- if (! (flag_force_addr && CONSTANT_ADDRESS_P (XEXP (ref, 0)))
- || memory_address_p (GET_MODE (ref), XEXP (ref, 0)))
+ if (memory_address_p (GET_MODE (ref), XEXP (ref, 0)))
return ref;
-
/* Don't alter REF itself, since that is probably a stack slot. */
- return replace_equiv_address (ref, XEXP (ref, 0));
+ return change_address (ref, GET_MODE (ref), XEXP (ref, 0));
}
/* Given REF, either a MEM or a REG, and T, either the type of X or