From: Martin Liska Date: Thu, 27 Oct 2022 08:29:17 +0000 (+0200) Subject: lto: do not load LTO stream for aliases [PR107418] X-Git-Tag: basepoints/gcc-14~3684 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be6c75547385c69706370f4e792b04295f708a5a;p=thirdparty%2Fgcc.git lto: do not load LTO stream for aliases [PR107418] PR lto/107418 gcc/lto/ChangeLog: * lto-dump.cc (lto_main): Do not load LTO stream for aliases. --- diff --git a/gcc/lto/lto-dump.cc b/gcc/lto/lto-dump.cc index f3d852df51f5..cb9782722a9b 100644 --- a/gcc/lto/lto-dump.cc +++ b/gcc/lto/lto-dump.cc @@ -347,7 +347,8 @@ lto_main (void) /* Dump gimple statement statistics. */ cgraph_node *node; FOR_EACH_DEFINED_FUNCTION (node) - node->get_untransformed_body (); + if (!node->alias) + node->get_untransformed_body (); if (!GATHER_STATISTICS) warning_at (input_location, 0, "Not configured with "