From: Jan Hubicka Date: Sun, 13 Oct 2019 08:34:10 +0000 (+0200) Subject: * lto.c (lto_wpa_write_files): Do not update bodies of clones. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f8cf94cd21b4b29e53eb779d2da50dc317690cb9;p=gcc.git * lto.c (lto_wpa_write_files): Do not update bodies of clones. From-SVN: r276935 --- 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 ();