aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto/lto.c
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/lto.c
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/lto.c')
-rw-r--r--gcc/lto/lto.c2
1 files changed, 1 insertions, 1 deletions
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 ();