Commit 9e81685a by Jakub Jelinek Committed by Jakub Jelinek

i386.md (call_pop): Check operands[0], not operands[1].

	* config/i386/i386.md (call_pop): Check operands[0],
	not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
	(call): Likewise.
	(call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
	(call_value): Likewise.

From-SVN: r35248
parent a7023245
2000-07-25 Jakub Jelinek <jakub@redhat.com>
* config/i386/i386.md (call_pop): Check operands[0],
not operands[1]. Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
(call): Likewise.
(call_value_pop): Only check SYMBOL_REF_FLAG for a SYMBOL_REF.
(call_value): Likewise.
2000-07-25 Zack Weinberg <zack@wolery.cumb.org>
* toplev.c (pipe_closed): Delete.
......
......@@ -8203,8 +8203,9 @@
/* Static functions and indirect calls don't need
current_function_uses_pic_offset_table. */
if (flag_pic
&& constant_call_address_operand (operands[1], SImode)
&& !SYMBOL_REF_FLAG (XEXP (operands[1], 0)))
&& constant_call_address_operand (operands[0], SImode)
&& (GET_CODE (XEXP (operands[0], 0)) != SYMBOL_REF
|| !SYMBOL_REF_FLAG (XEXP (operands[0], 0))))
current_function_uses_pic_offset_table = 1;
if (! call_insn_operand (operands[0], QImode))
XEXP (operands[0], 0) = copy_to_mode_reg (Pmode, XEXP (operands[0], 0));
......@@ -8258,8 +8259,9 @@
/* Static functions and indirect calls don't need
current_function_uses_pic_offset_table. */
if (flag_pic
&& constant_call_address_operand (operands[1], SImode)
&& !SYMBOL_REF_FLAG (XEXP (operands[1], 0)))
&& constant_call_address_operand (operands[0], SImode)
&& (GET_CODE (XEXP (operands[0], 0)) != SYMBOL_REF
|| !SYMBOL_REF_FLAG (XEXP (operands[0], 0))))
current_function_uses_pic_offset_table = 1;
if (! call_insn_operand (operands[0], QImode))
XEXP (operands[0], 0) = copy_to_mode_reg (Pmode, XEXP (operands[0], 0));
......@@ -8321,7 +8323,8 @@
current_function_uses_pic_offset_table. */
if (flag_pic
&& constant_call_address_operand (operands[1], SImode)
&& !SYMBOL_REF_FLAG (XEXP (operands[1], 0)))
&& (GET_CODE (XEXP (operands[1], 0)) != SYMBOL_REF
|| !SYMBOL_REF_FLAG (XEXP (operands[1], 0))))
current_function_uses_pic_offset_table = 1;
if (! call_insn_operand (operands[1], QImode))
XEXP (operands[1], 0) = copy_to_mode_reg (Pmode, XEXP (operands[1], 0));
......@@ -8339,7 +8342,8 @@
current_function_uses_pic_offset_table. */
if (flag_pic
&& constant_call_address_operand (operands[1], SImode)
&& !SYMBOL_REF_FLAG (XEXP (operands[1], 0)))
&& (GET_CODE (XEXP (operands[1], 0)) != SYMBOL_REF
|| !SYMBOL_REF_FLAG (XEXP (operands[1], 0))))
current_function_uses_pic_offset_table = 1;
if (! call_insn_operand (operands[1], QImode))
XEXP (operands[1], 0) = copy_to_mode_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