* lto.c (lto_wpa_write_files): Do not update bodies of clones.
authorJan Hubicka <hubicka@ucw.cz>
Sun, 13 Oct 2019 08:34:10 +0000 (10:34 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 13 Oct 2019 08:34:10 +0000 (08:34 +0000)
From-SVN: r276935

gcc/lto/ChangeLog
gcc/lto/lto.c

index 5ad79e8..2ef4a87 100644 (file)
@@ -1,3 +1,7 @@
+2019-10-12  Jan Hubicka  <hubicka@ucw.cz>
+
+       * lto.c (lto_wpa_write_files): Do not update bodies of clones.
+
 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
 
        * lto.c (lto_wpa_write_files): Call ggc_trim.
index 5aa1438..4f404ec 100644 (file)
@@ -308,7 +308,7 @@ lto_wpa_write_files (void)
   /* Do body modifications needed for streaming before we fork out
      worker processes.  */
   FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (node)
-    if (gimple_has_body_p (node->decl))
+    if (!node->clone_of && gimple_has_body_p (node->decl))
       lto_prepare_function_for_streaming (node);
 
   ggc_trim ();