Fix last commit.
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Dec 2007 17:54:59 +0000 (17:54 +0000)
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 Dec 2007 17:54:59 +0000 (17:54 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130654 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/mips/mips.c

index 4a99f2d..1aec140 100644 (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>
 
index 125f087..e7c9909 100644 (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;