Commit 8d618585 by Jim Wilson

(get_secondary_mem): Don't save address if it isn't valid.

From-SVN: r2886
parent c8c29f85
......@@ -431,7 +431,12 @@ get_secondary_mem (x, mode)
if (! mem_valid)
find_reloads_address (mode, NULL_PTR, XEXP (loc, 0), &XEXP (loc, 0), x, 0);
secondary_memlocs_elim[(int) mode] = loc;
/* If the address was not valid to begin with, we can not save it, because
there is no guarantee that the reloads needed to make it valid will
occur before every use of this address. */
else
secondary_memlocs_elim[(int) mode] = loc;
return loc;
}
......
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