Commit 9a9a996b by Stan Cox

If operand1 is an invalid PIC address, then legitimize it before doing anything else.

From-SVN: r8228
parent 22619c3f
......@@ -224,6 +224,10 @@ emit_move_sequence (operands, mode, scratch)
register rtx operand0 = operands[0];
register rtx operand1 = operands[1];
if (CONSTANT_P (operand1) && flag_pic
&& pic_address_needs_scratch (operand1))
operands[1] = operand1 = legitimize_address (1, operand1, 0, 0);
/* Handle most common case first: storing into a register. */
if (register_operand (operand0, mode))
{
......
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