]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Update calls_comdat_local in cgraph_node::create_version_clone
authorJan Hubicka <jh@suse.cz>
Sun, 21 Sep 2025 17:54:51 +0000 (19:54 +0200)
committerJan Hubicka <jh@suse.cz>
Sun, 21 Sep 2025 17:55:16 +0000 (19:55 +0200)
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

index c160e8b6985b9175b3f9e9dbe47afcf1f395ffde..590d295ad43ab5e760ca6089f2a55ceee68a494a 100644 (file)
@@ -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);