Hi,
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.

Bootstrapped/regtested x86_64-linux, comitted.

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);
 

Reply via email to