Commit 7d558bfe by Torbjorn Granlund

(call): Force address into register in non-symbol case.

(call_value): Likewise.

From-SVN: r7380
parent 7f21d440
......@@ -3025,7 +3025,8 @@
if (GET_CODE (op) == SYMBOL_REF)
emit_call_insn (gen_call_internal_symref (op, operands[1]));
else
emit_call_insn (gen_call_internal_reg (op, operands[1]));
emit_call_insn (gen_call_internal_reg (force_reg (SImode, op),
operands[1]));
if (flag_pic)
{
......@@ -3091,7 +3092,9 @@
emit_call_insn (gen_call_value_internal_symref (operands[0], op,
operands[2]));
else
emit_call_insn (gen_call_value_internal_reg (operands[0], op, operands[2]));
emit_call_insn (gen_call_value_internal_reg (operands[0],
force_reg (SImode, op),
operands[2]));
if (flag_pic)
{
......
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