This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug ipa/58398] [4.9 Regression] gcc.dg/attr-ifunc-4.c runfail regression after r202111
- From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 16 Sep 2013 11:56:35 +0000
- Subject: [Bug ipa/58398] [4.9 Regression] gcc.dg/attr-ifunc-4.c runfail regression after r202111
- Auto-submitted: auto-generated
- References: <bug-58398-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58398
Bernd Edlinger <bernd.edlinger at hotmail dot de> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bernd.edlinger at hotmail dot de
--- Comment #3 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
a possible fix:
what do you think of it?
--- cgraph.c.jj 2013-09-12 15:03:18.000000000 +0200
+++ cgraph.c 2013-09-16 13:37:16.453710206 +0200
@@ -2048,6 +2048,8 @@ cgraph_function_body_availability (struc
avail = AVAIL_LOCAL;
else if (node->symbol.alias && node->symbol.weakref)
cgraph_function_or_thunk_node (node, &avail);
+ else if (lookup_attribute ("ifunc", DECL_ATTRIBUTES (node->symbol.decl)))
+ avail = AVAIL_NOT_AVAILABLE;
else if (!node->symbol.externally_visible)
avail = AVAIL_AVAILABLE;
/* Inline functions are safe to be analyzed even if their symbol can