From: Jan Hubicka Date: Thu, 15 Apr 2021 09:40:40 +0000 (+0200) Subject: Fix handling of clones in lto_wpa_write_files [PR98599] X-Git-Tag: basepoints/gcc-12~67 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5f644a98b3f3543d3a8d2dfea7785c22879013f;p=thirdparty%2Fgcc.git Fix handling of clones in lto_wpa_write_files [PR98599] 2021-04-15 Jan Hubicka PR lto/98599 * lto.c (lto_wpa_write_files): Fix handling of clones. --- diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index ceb61bb300b9..5903f75ac23f 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -306,7 +306,7 @@ lto_wpa_write_files (void) cgraph_node *node; /* Do body modifications needed for streaming before we fork out worker processes. */ - FOR_EACH_FUNCTION_WITH_GIMPLE_BODY (node) + FOR_EACH_FUNCTION (node) if (!node->clone_of && gimple_has_body_p (node->decl)) lto_prepare_function_for_streaming (node);