(get_secondary_mem): Don't save address if it isn't valid.
From-SVN: r2886
This commit is contained in:
parent
c8c29f855d
commit
8d618585fc
@ -431,6 +431,11 @@ get_secondary_mem (x, mode)
|
||||
if (! mem_valid)
|
||||
find_reloads_address (mode, NULL_PTR, XEXP (loc, 0), &XEXP (loc, 0), x, 0);
|
||||
|
||||
/* 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;
|
||||
|
Loading…
Reference in New Issue
Block a user