https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82256
--- Comment #2 from PaX Team <pageexec at gmail dot com> --- (In reply to Martin Liška from comment #1) > Hi. Sorry for the breakage. Are you planning to post patch for that? i wasn't going to, but here it is: diff --git a/gcc/cgraphclones.c b/gcc/cgraphclones.c index 93668ab99816..fa2e45226351 100644 --- a/gcc/cgraphclones.c +++ b/gcc/cgraphclones.c @@ -1039,7 +1039,7 @@ cgraph_node::create_version_clone_with_body /* Update the call_expr on the edges to call the new version node. */ update_call_expr (new_version_node); - symtab->call_cgraph_insertion_hooks (this); + symtab->call_cgraph_insertion_hooks (new_version_node); return new_version_node; } > I believe you'll be able to backport that. i already tested this locally but i'd much prefer this to be fixed in gcc proper since it affects gcc's own callbacks too.