From 8c77e3e7be12f9f0dfd1241195c9253be359c3fc Mon Sep 17 00:00:00 2001 From: rsandifo Date: Thu, 6 Dec 2007 17:54:59 +0000 Subject: [PATCH] Fix last commit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130654 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++-- gcc/config/mips/mips.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4a99f2d..1aec140 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,7 +1,7 @@ 2007-12-06 Richard Sandiford - * 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 diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 125f087..e7c9909 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -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; -- 2.7.4