* 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 5ad79e821adff6c38a36275a245910f8c792ba89..2ef4a87da762745be314cb50af8f9fbe8b8c6aee 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 5aa143859d5991ae2d679d78bc8f4a8baa3e8fb7..4f404ec08f8e5f5fe22eaa836318647497341363 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 ();