aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/mips
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2008-09-06 09:21:39 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2008-09-06 09:21:39 +0000
commitcf9000971330edf49616839494cb049b07d2485d (patch)
treef67b8496dbdeaecb48df917c3f90754df3021132 /gcc/config/mips
parent4d210b073fb34615670b295c5c2a3ea0acf2c986 (diff)
downloadgcc-cf9000971330edf49616839494cb049b07d2485d.zip
gcc-cf9000971330edf49616839494cb049b07d2485d.tar.gz
gcc-cf9000971330edf49616839494cb049b07d2485d.tar.bz2
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
Diffstat (limited to 'gcc/config/mips')
-rw-r--r--gcc/config/mips/mips.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 9187991..799570c 100644
--- a/gcc/config/mips/mips.c
+++ b/gcc/config/mips/mips.c
@@ -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
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;