https://gcc.gnu.org/bugzilla/show_bug.cgi?id=122895
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hjl.tools at gmail dot com
Keywords| |wrong-code
--- Comment #1 from Sam James <sjames at gcc dot gnu.org> ---
I think cgraph_node::create needs to just copy the ifunc fix from
r14-9775-gcab32bacaea268 for target_clones so we mark it appropriately, then
the rest should work:
cgraph_node *
cgraph_node::create (tree decl)
{
/* ... */
if (lookup_attribute ("ifunc", DECL_ATTRIBUTES (decl)))
node->ifunc_resolver = true;
/* ... */
}