]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
s390.c (s390_function_ok_for_sibcall): Use targetm.binds_local_p to check for local...
authorUlrich Weigand <uweigand@de.ibm.com>
Fri, 9 Dec 2005 01:00:55 +0000 (01:00 +0000)
committerUlrich Weigand <uweigand@gcc.gnu.org>
Fri, 9 Dec 2005 01:00:55 +0000 (01:00 +0000)
* config/s390/s390.c (s390_function_ok_for_sibcall): Use
targetm.binds_local_p to check for local function calls.

From-SVN: r108269

gcc/ChangeLog
gcc/config/s390/s390.c

index 208866f98354a90c18ebcb257aa7300386bdc22a..5faabaf6f4dc381bde9b0a399f8a2985ddd4dd06 100644 (file)
@@ -1,3 +1,8 @@
+2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * config/s390/s390.c (s390_function_ok_for_sibcall): Use
+       targetm.binds_local_p to check for local function calls.
+
 2005-12-09  Alan Modra  <amodra@bigpond.net.au>
 
        PR debug/24908
index 941e6f2f517fc88615f561174819fc69d37b3582..6766af76cdb9af9916d4e3ca4dc32ef52a312964 100644 (file)
@@ -8574,7 +8574,7 @@ s390_function_ok_for_sibcall (tree decl, tree exp)
 
   /* The 31 bit PLT code uses register 12 (GOT pointer - caller saved)
      which would have to be restored before the sibcall.  */
-  if (!TARGET_64BIT && flag_pic && decl && TREE_PUBLIC (decl))
+  if (!TARGET_64BIT && flag_pic && decl && !targetm.binds_local_p (decl))
     return false;
 
   /* Register 6 on s390 is available as an argument register but unfortunately