From 058b2ef951fa833145891834471c7e577b72221f Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 21 Sep 2025 19:54:51 +0200 Subject: [PATCH] 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 --- gcc/cgraphclones.cc | 1 + 1 file changed, 1 insertion(+) 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); -- 2.47.3