aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@nildram.co.uk>2007-12-06 17:54:59 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2007-12-06 17:54:59 +0000
commitdd748704c4324e36759186afa516bd6c5fb5558b (patch)
tree72c0434eb101619857fe30551f237e132e029a42 /gcc
parent0b6e16476f5811306bb2ee20ccf862afb584d071 (diff)
downloadgcc-dd748704c4324e36759186afa516bd6c5fb5558b.zip
gcc-dd748704c4324e36759186afa516bd6c5fb5558b.tar.gz
gcc-dd748704c4324e36759186afa516bd6c5fb5558b.tar.bz2
Fix last commit.
From-SVN: r130654
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/config/mips/mips.c2
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 <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>
diff --git a/gcc/config/mips/mips.c b/gcc/config/mips/mips.c
index 125f0871..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;