diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2005-12-09 01:00:55 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2005-12-09 01:00:55 +0000 |
commit | 7691ec4e73c9b12b8216fe5181bf7bdc9c404eb3 (patch) | |
tree | d19f1c69d6baa58b66b1afc51343c5319ab25bb0 /gcc | |
parent | a5a9aa38d4fdc52632ba48264aff5959505ad6d5 (diff) | |
download | gcc-7691ec4e73c9b12b8216fe5181bf7bdc9c404eb3.zip gcc-7691ec4e73c9b12b8216fe5181bf7bdc9c404eb3.tar.gz gcc-7691ec4e73c9b12b8216fe5181bf7bdc9c404eb3.tar.bz2 |
s390.c (s390_function_ok_for_sibcall): Use targetm.binds_local_p to check for local function calls.
* config/s390/s390.c (s390_function_ok_for_sibcall): Use
targetm.binds_local_p to check for local function calls.
From-SVN: r108269
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/s390/s390.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 208866f..5faabaf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 941e6f2..6766af7 100644 --- a/gcc/config/s390/s390.c +++ b/gcc/config/s390/s390.c @@ -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 |