From 17a7218b811ffe1f8524ae04bc018f526186549f Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 28 Jun 2017 14:47:24 +0200 Subject: Do not allow to inline ifunc resolvers (PR ipa/81128). 2017-06-28 Martin Liska PR ipa/81128 * ipa-visibility.c (non_local_p): Handle visibility. 2017-06-28 Martin Liska PR ipa/81128 * c-attribs.c (handle_alias_ifunc_attribute): Append ifunc alias to a function declaration. 2017-06-28 Martin Liska PR ipa/81128 * gcc.target/i386/pr81128.c: New test. From-SVN: r249735 --- gcc/ipa-visibility.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/ipa-visibility.c') diff --git a/gcc/ipa-visibility.c b/gcc/ipa-visibility.c index d5a3ae5..da4a22e 100644 --- a/gcc/ipa-visibility.c +++ b/gcc/ipa-visibility.c @@ -97,7 +97,8 @@ non_local_p (struct cgraph_node *node, void *data ATTRIBUTE_UNUSED) && !DECL_EXTERNAL (node->decl) && !node->externally_visible && !node->used_from_other_partition - && !node->in_other_partition); + && !node->in_other_partition + && node->get_availability () >= AVAIL_AVAILABLE); } /* Return true when function can be marked local. */ -- cgit v1.1