Commit eee4bff6 by Richard Kenner

(call, call_value): Don't use call_operand, since checking for

recursive calls at this point is not safe.

From-SVN: r2458
parent eb9aa338
...@@ -150,7 +150,10 @@ ...@@ -150,7 +150,10 @@
if (GET_CODE (operands[0]) != MEM) if (GET_CODE (operands[0]) != MEM)
abort (); abort ();
if (! call_operand (XEXP (operands[0], 0), SImode)) /* We tell here whether this is a recursive call, since this insn may
later be inlined into another function. */
if (! TARGET_SMALL_MEMORY
&& GET_CODE (XEXP (operands[0], 0)) == SYMBOL_REF)
operands[0] = gen_rtx (MEM, SImode, operands[0] = gen_rtx (MEM, SImode,
force_reg (Pmode, XEXP (operands[0], 0))); force_reg (Pmode, XEXP (operands[0], 0)));
...@@ -169,7 +172,10 @@ ...@@ -169,7 +172,10 @@
if (GET_CODE (operands[1]) != MEM) if (GET_CODE (operands[1]) != MEM)
abort (); abort ();
if (! call_operand (XEXP (operands[1], 0), SImode)) /* We tell here whether this is a recursive call, since this insn may
later be inlined into another function. */
if (! TARGET_SMALL_MEMORY
&& GET_CODE (XEXP (operands[1], 0)) == SYMBOL_REF)
operands[1] = gen_rtx (MEM, SImode, operands[1] = gen_rtx (MEM, SImode,
force_reg (Pmode, XEXP (operands[1], 0))); force_reg (Pmode, XEXP (operands[1], 0)));
......
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