From: Martin Liska Date: Tue, 2 Aug 2022 07:58:43 +0000 (+0200) Subject: IPA: reduce what we dump in normal mode X-Git-Tag: basepoints/gcc-14~5279 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84beef30a51988e77e9df3104ed6203756172d65;p=thirdparty%2Fgcc.git IPA: reduce what we dump in normal mode gcc/ChangeLog: * profile.cc (compute_branch_probabilities): Dump details only if TDF_DETAILS. * symtab.cc (symtab_node::dump_base): Do not dump pointer unless TDF_ADDRESS is used, it makes comparison harder. --- diff --git a/gcc/profile.cc b/gcc/profile.cc index 08af512cbca..92de821b8bb 100644 --- a/gcc/profile.cc +++ b/gcc/profile.cc @@ -766,7 +766,7 @@ compute_branch_probabilities (unsigned cfg_checksum, unsigned lineno_checksum) sum2 += freq2; } } - if (dump_file) + if (dump_file && (dump_flags & TDF_DETAILS)) { double nsum1 = 0, nsum2 = 0; stats.qsort (cmp_stats); diff --git a/gcc/symtab.cc b/gcc/symtab.cc index 8670337416e..f2d96c0268b 100644 --- a/gcc/symtab.cc +++ b/gcc/symtab.cc @@ -894,7 +894,8 @@ symtab_node::dump_base (FILE *f) }; fprintf (f, "%s (%s)", dump_asm_name (), name ()); - dump_addr (f, " @", (void *)this); + if (dump_flags & TDF_ADDRESS) + dump_addr (f, " @", (void *)this); fprintf (f, "\n Type: %s", symtab_type_names[type]); if (definition)