[gcc r16-4012] Update calls_comdat_local in cgraph_node::create_version_clone
Jan Hubicka
hubicka@gcc.gnu.org
Sun Sep 21 17:55:27 GMT 2025
https://gcc.gnu.org/g:058b2ef951fa833145891834471c7e577b72221f
commit r16-4012-g058b2ef951fa833145891834471c7e577b72221f
Author: Jan Hubicka <jh@suse.cz>
Date: Sun Sep 21 19:54:51 2025 +0200
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:
---
gcc/cgraphclones.cc | 1 +
1 file changed, 1 insertion(+)
diff --git a/gcc/cgraphclones.cc b/gcc/cgraphclones.cc
index c160e8b6985b..590d295ad43a 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);
More information about the Gcc-cvs
mailing list