summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoramonakov <amonakov@138bc75d-0d04-0410-961f-82ee72b054a4>2015-05-25 17:44:45 +0000
committerH.J. Lu <hjl.tools@gmail.com>2015-08-18 04:49:34 -0700
commit991291d42319c2af537bf1eda62a3b4ae987cc3f (patch)
treef05419f1edd0f83a9629b96a7fc13b3b87d9a701
parentfad38a0d8da0a97fc315fe99947862282729dc51 (diff)
downloadgcc-991291d42319c2af537bf1eda62a3b4ae987cc3f.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
-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 005e1e46e4d..0a1238c4071 100644
--- a/gcc/config/i386/i386.c
+++ b/gcc/config/i386/i386.c
@@ -5470,6 +5470,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;