Commit ca3e4a2f by Richard Stallman

(find_reloads_address): Redo last change: copy the mem

in the same way it's usually done.

From-SVN: r2503
parent 4006fe4f
......@@ -3633,7 +3633,13 @@ find_reloads_address (mode, memrefloc, ad, loc, operand, ind_levels)
/* If tem was changed, then we must create a new memory reference to
hold it and store it back into memrefloc. */
if (tem != ad && memrefloc)
*memrefloc = gen_rtx (MEM, GET_MODE (*memrefloc), tem);
{
rtx oldref = *memrefloc;
*memrefloc = copy_rtx (*memrefloc);
loc = &XEXP (*memrefloc, 0);
if (operand == oldref)
operand = *memrefloc;
}
/* Check similar cases as for indirect addresses as above except
that we can allow pseudos and a MEM since they should have been
......
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