From: Richard Kenner Date: Wed, 4 Jul 2001 02:32:25 +0000 (-0400) Subject: Install correct hunks X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ec97333e0964727112d5304b07980b9e0cdd94d4;p=gcc.git Install correct hunks From-SVN: r43746 --- 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