Install correct hunks

From-SVN: r43746
This commit is contained in:
Richard Kenner 2001-07-03 22:32:25 -04:00
parent 17ab7c59ba
commit ec97333e09
1 changed files with 2 additions and 4 deletions

View File

@ -610,12 +610,10 @@ validize_mem (ref)
{ {
if (GET_CODE (ref) != MEM) if (GET_CODE (ref) != MEM)
return ref; return ref;
if (! (flag_force_addr && CONSTANT_ADDRESS_P (XEXP (ref, 0))) if (memory_address_p (GET_MODE (ref), XEXP (ref, 0)))
|| memory_address_p (GET_MODE (ref), XEXP (ref, 0)))
return ref; return ref;
/* Don't alter REF itself, since that is probably a stack slot. */ /* 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 /* Given REF, either a MEM or a REG, and T, either the type of X or