Fix last commit.

From-SVN: r130654
This commit is contained in:
Richard Sandiford 2007-12-06 17:54:59 +00:00 committed by Richard Sandiford
parent 0b6e16476f
commit dd748704c4
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
2007-12-06 Richard Sandiford <rsandifo@nildram.co.uk>
* config/mips/mips.c (mips_function_ok_for_sibcall): Use
targetm.binds_local_p instead of DECL_EXTERNAL.
* config/mips/mips.c (mips_function_ok_for_sibcall): Check
targetm.binds_local_p as well as DECL_EXTERNAL.
2007-12-06 Harsha Jagasia <harsha.jagasia@amd.com>

View File

@ -5616,7 +5616,7 @@ mips_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED)
us otherwise. */
if (TARGET_INTERLINK_MIPS16
&& decl
&& !targetm.binds_local_p (decl)
&& (DECL_EXTERNAL (decl) || !targetm.binds_local_p (decl))
&& !mips_nomips16_decl_p (decl)
&& const_call_insn_operand (XEXP (DECL_RTL (decl), 0), VOIDmode))
return false;