summaryrefslogtreecommitdiff
path: root/gcc/cgraph.c
diff options
context:
space:
mode:
authorMartin Jambor <mjambor@suse.cz>2019-11-28 16:39:48 +0100
committerMartin Jambor <jamborm@gcc.gnu.org>2019-11-28 16:39:48 +0100
commit2dfd63ded836e993c3693da957142b0228c61607 (patch)
treecd9141bc7986db875bf61ac841ff0f056253111b /gcc/cgraph.c
parente01857197b5fbd660903fe8c0b4c6387780afe10 (diff)
downloadgcc-2dfd63ded836e993c3693da957142b0228c61607.tar.gz
cgraph: ifunc resolvers cannot be made local (PR 92697)
2019-11-28 Martin Jambor <mjambor@suse.cz> PR ipa/92697 * cgraph.c (cgraph_node_cannot_be_local_p_1): Return true for ifunc_resolvers. * symtab.c (symtab_node::dump_base): Dump ifunc_resolver flag. Removed trailig whitespace. testsuite/ * g++.dg/ipa/pr92697.C: New. From-SVN: r278812
Diffstat (limited to 'gcc/cgraph.c')
-rw-r--r--gcc/cgraph.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 1f7a5c58d98..dd07516b83e 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -2227,6 +2227,7 @@ static bool
cgraph_node_cannot_be_local_p_1 (cgraph_node *node, void *)
{
return !(!node->force_output
+ && !node->ifunc_resolver
&& ((DECL_COMDAT (node->decl)
&& !node->forced_by_abi
&& !node->used_from_object_file_p ()