diff options
Diffstat (limited to 'gcc/config/s390/s390.c')
-rw-r--r-- | gcc/config/s390/s390.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/s390/s390.c b/gcc/config/s390/s390.c index 941e6f2f517..6766af76cdb 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 |