aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2019-10-13 10:34:10 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2019-10-13 08:34:10 +0000
commitf8cf94cd21b4b29e53eb779d2da50dc317690cb9 (patch)
tree838d40718599bc6004bfae1508dfb6832c81744f /gcc/lto
parentaf0d0f50722e17f9c7c23149866143e1c54d3ec3 (diff)
downloadgcc-f8cf94cd21b4b29e53eb779d2da50dc317690cb9.zip
gcc-f8cf94cd21b4b29e53eb779d2da50dc317690cb9.tar.gz
gcc-f8cf94cd21b4b29e53eb779d2da50dc317690cb9.tar.bz2
* lto.c (lto_wpa_write_files): Do not update bodies of clones.
From-SVN: r276935
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index 5ad79e8..2ef4a87 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -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.
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 5aa1438..4f404ec 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -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 ();