From: rsandifo Date: Thu, 6 Dec 2007 17:48:43 +0000 (+0000) Subject: gcc/ X-Git-Tag: upstream/4.9.2~44742 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f8aa69dc48594e50859d545bc5e48fc7b472d3c;p=platform%2Fupstream%2Flinaro-gcc.git gcc/ * config/mips/mips.c (mips_function_ok_for_sibcall): Use targetm.binds_local_p instead of DECL_EXTERNAL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130653 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7994797..4a99f2d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-12-06 Richard Sandiford + + * config/mips/mips.c (mips_function_ok_for_sibcall): Use + targetm.binds_local_p instead of DECL_EXTERNAL. + 2007-12-06 Harsha Jagasia * tree-vectorizer.c (slpeel_add_loop_guard): Gimplify the condition. diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c index 42e15a0..125f087 100644 --- a/gcc/config/mips/mips.c +++ b/gcc/config/mips/mips.c @@ -5611,12 +5611,12 @@ mips_function_ok_for_sibcall (tree decl, tree exp ATTRIBUTE_UNUSED) && const_call_insn_operand (XEXP (DECL_RTL (decl), 0), VOIDmode)) return false; - /* When -minterlink-mips16 is in effect, assume that external - functions could be MIPS16 ones unless an attribute explicitly - tells us otherwise. */ + /* When -minterlink-mips16 is in effect, assume that non-locally-binding + functions could be MIPS16 ones unless an attribute explicitly tells + us otherwise. */ if (TARGET_INTERLINK_MIPS16 && 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;