From: H.J. Lu Date: Tue, 27 Aug 2024 20:11:39 +0000 (-0700) Subject: ipa: Don't disable function parameter analysis for fat LTO X-Git-Tag: releases/gcc-12.5.0~562 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42d4aa02c6016cc8efd896f627f692896e68c914;p=thirdparty%2Fgcc.git ipa: Don't disable function parameter analysis for fat LTO Update analyze_parms not to disable function parameter analysis for -ffat-lto-objects. Tested on x86-64, there are no differences in zstd with "-O2 -flto=auto" -g "vs -O2 -flto=auto -g -ffat-lto-objects". PR ipa/116410 * ipa-modref.cc (analyze_parms): Always analyze function parameter for LTO. Signed-off-by: H.J. Lu (cherry picked from commit 2f1689ea8e631ebb4ff3720d56ef0362f5898ff6) --- diff --git a/gcc/ipa-modref.cc b/gcc/ipa-modref.cc index 556816ab4296..d41de9c59c12 100644 --- a/gcc/ipa-modref.cc +++ b/gcc/ipa-modref.cc @@ -2964,7 +2964,7 @@ analyze_parms (modref_summary *summary, modref_summary_lto *summary_lto, summary->arg_flags.safe_grow_cleared (count, true); summary->arg_flags[parm_index] = EAF_UNUSED; } - else if (summary_lto) + if (summary_lto) { if (parm_index >= summary_lto->arg_flags.length ()) summary_lto->arg_flags.safe_grow_cleared (count, true); @@ -3020,7 +3020,7 @@ analyze_parms (modref_summary *summary, modref_summary_lto *summary_lto, summary->arg_flags.safe_grow_cleared (count, true); summary->arg_flags[parm_index] = flags; } - else if (summary_lto) + if (summary_lto) { if (parm_index >= summary_lto->arg_flags.length ()) summary_lto->arg_flags.safe_grow_cleared (count, true);