Commit 17ab7c59 by Richard Kenner Committed by Richard Kenner

* explow.c (plus_constant_wide): Reinitialize Y for restart.

From-SVN: r43745
parent 38733dbb
Tue Jul 3 22:33:15 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* explow.c (plus_constant_wide): Reinitialize Y for restart.
2001-07-03 Stan Shebs <shebs@apple.com> 2001-07-03 Stan Shebs <shebs@apple.com>
* darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove * darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
......
...@@ -78,7 +78,7 @@ plus_constant_wide (x, c) ...@@ -78,7 +78,7 @@ plus_constant_wide (x, c)
register HOST_WIDE_INT c; register HOST_WIDE_INT c;
{ {
register RTX_CODE code; register RTX_CODE code;
rtx y = x; rtx y;
register enum machine_mode mode; register enum machine_mode mode;
register rtx tem; register rtx tem;
int all_constant = 0; int all_constant = 0;
...@@ -90,6 +90,8 @@ plus_constant_wide (x, c) ...@@ -90,6 +90,8 @@ plus_constant_wide (x, c)
code = GET_CODE (x); code = GET_CODE (x);
mode = GET_MODE (x); mode = GET_MODE (x);
y = x;
switch (code) switch (code)
{ {
case CONST_INT: case CONST_INT:
...@@ -608,10 +610,12 @@ validize_mem (ref) ...@@ -608,10 +610,12 @@ validize_mem (ref)
{ {
if (GET_CODE (ref) != MEM) if (GET_CODE (ref) != MEM)
return ref; return ref;
if (memory_address_p (GET_MODE (ref), XEXP (ref, 0))) if (! (flag_force_addr && CONSTANT_ADDRESS_P (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 change_address (ref, GET_MODE (ref), XEXP (ref, 0)); return replace_equiv_address (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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment