Commit 01bdc11e by Richard Sandiford Committed by Richard Sandiford

mips.c (mips_expand_call): Don't allow laziy binding for n32 & n64 abicalls.

	* config/mips/mips.c (mips_expand_call): Don't allow laziy binding
	for n32 & n64 abicalls.

From-SVN: r74324
parent f24e76eb
2003-12-05 Richard Sandiford <rsandifo@redhat.com> 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
* config/mips/mips.c (mips_expand_call): Don't allow laziy binding
for n32 & n64 abicalls.
2003-12-05 Richard Sandiford <rsandifo@redhat.com>
PR bootstrap/13145 PR bootstrap/13145
* config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment. * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment.
* config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall. * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall.
......
...@@ -3187,7 +3187,13 @@ mips_expand_call (rtx result, rtx addr, rtx args_size, rtx aux, int sibcall_p) ...@@ -3187,7 +3187,13 @@ mips_expand_call (rtx result, rtx addr, rtx args_size, rtx aux, int sibcall_p)
{ {
if (!call_insn_operand (addr, VOIDmode)) if (!call_insn_operand (addr, VOIDmode))
{ {
if (TARGET_EXPLICIT_RELOCS && global_got_operand (addr, VOIDmode)) /* If we're generating PIC, and this call is to a global function,
try to allow its address to be resolved lazily. This isn't
possible for NewABI sibcalls since the value of $gp on entry
to the stub would be our caller's gp, not ours. */
if (TARGET_EXPLICIT_RELOCS
&& !(sibcall_p && TARGET_NEWABI)
&& global_got_operand (addr, VOIDmode))
{ {
rtx high, lo_sum_symbol; rtx high, lo_sum_symbol;
......
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