summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authoramonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-25 17:44:45 +0000
committeramonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-25 17:44:45 +0000
commitad32aa90bbf93368b76dc454710b88349ff735c8 (patch)
tree2cde1360d1d2005b0320572a347712a308c97d47 /gcc/config/i386
parentf1c4a63488879c31017cfd31278c4e63c7170503 (diff)
downloadgcc-ad32aa90bbf93368b76dc454710b88349ff735c8.tar.gz
* config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@223648 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i386')
-rw-r--r--gcc/config/i386/i386.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c
index af219fdb3c7..99322b42ac3 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -5478,6 +5478,7 @@ ix86_function_ok_for_sibcall (tree decl, tree exp)
if (!TARGET_MACHO
&& !TARGET_64BIT
&& flag_pic
+ && flag_plt
&& decl && !targetm.binds_local_p (decl))
return false;