Commit cf900097 by Richard Sandiford Committed by Richard Sandiford

mips.c (mips_function_ok_for_sibcall): Check for DECL being null.

gcc/
	* config/mips/mips.c (mips_function_ok_for_sibcall): Check for
	DECL being null.

From-SVN: r140056
parent 4d210b07
2008-09-06 Richard Sandiford <rdsandiford@googlemail.com>
* config/mips/mips.c (mips_function_ok_for_sibcall): Check for
DECL being null.
2008-09-06 Richard Sandiford <rdsandiford@goolemail.com> 2008-09-06 Richard Sandiford <rdsandiford@goolemail.com>
Peter Fuerst <post@pfrst.de> Peter Fuerst <post@pfrst.de>
......
...@@ -6173,7 +6173,8 @@ mips_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED) ...@@ -6173,7 +6173,8 @@ mips_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED)
because there is no direct "jx" instruction equivalent to "jalx" to because there is no direct "jx" instruction equivalent to "jalx" to
switch the ISA mode. We only care about cases where the sibling switch the ISA mode. We only care about cases where the sibling
and normal calls would both be direct. */ and normal calls would both be direct. */
if (mips_use_mips16_mode_p (decl) if (decl
&& mips_use_mips16_mode_p (decl)
&& const_call_insn_operand (XEXP (DECL_RTL (decl), 0), VOIDmode)) && const_call_insn_operand (XEXP (DECL_RTL (decl), 0), VOIDmode))
return false; return false;
......
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