From: Jan Hubicka Date: Sun, 21 Sep 2025 17:54:51 +0000 (+0200) Subject: Update calls_comdat_local in cgraph_node::create_version_clone X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=058b2ef951fa833145891834471c7e577b72221f;p=thirdparty%2Fgcc.git Update calls_comdat_local in cgraph_node::create_version_clone This patches fixes ICE when ipa-split is run from ipa-profile. In normal computation we recompute the flag elsewhere, but it is supposed to be kept up-to-date by passes possibly modifying it. gcc/ChangeLog: * cgraphclones.cc (cgraph_node::create_version_clone): Recompute calls_comdat_local --- diff --git a/gcc/cgraphclones.cc b/gcc/cgraphclones.cc index c160e8b6985..590d295ad43 100644 --- a/gcc/cgraphclones.cc +++ b/gcc/cgraphclones.cc @@ -990,6 +990,7 @@ cgraph_node::create_version_clone (tree new_decl, version. */ e->redirect_callee (new_version); } + new_version->calls_comdat_local = new_version->check_calls_comdat_local_p (); dump_callgraph_transformation (this, new_version, suffix);