From f8cf94cd21b4b29e53eb779d2da50dc317690cb9 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sun, 13 Oct 2019 10:34:10 +0200 Subject: [PATCH] * lto.c (lto_wpa_write_files): Do not update bodies of clones. From-SVN: r276935 --- gcc/lto/ChangeLog | 4 ++++ gcc/lto/lto.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index 5ad79e821ad..2ef4a87da76 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2019-10-12 Jan Hubicka + + * lto.c (lto_wpa_write_files): Do not update bodies of clones. + 2019-10-11 Jan Hubicka * lto.c (lto_wpa_write_files): Call ggc_trim. diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index 5aa143859d5..4f404ec08f8 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 (); -- 2.30.2