* config/mips/mips.c (mips_function_ok_for_sibcall): Check for
DECL being null.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@140056
138bc75d-0d04-0410-961f-
82ee72b054a4
+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>
Peter Fuerst <post@pfrst.de>
because there is no direct "jx" instruction equivalent to "jalx" to
switch the ISA mode. We only care about cases where the sibling
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))
return false;