From: Aldy Hernandez Date: Fri, 3 Sep 2021 09:32:11 +0000 (+0200) Subject: Add function name when dumping ranger contents. X-Git-Tag: basepoints/gcc-13~4979 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4db10cbf21dfe48e72880f592c1b5640baaf16cf;p=thirdparty%2Fgcc.git Add function name when dumping ranger contents. These are minor cleanups to the dumping code. Tested on x86-64 Linux. gcc/ChangeLog: * gimple-range-trace.cc (debug_seed_ranger): Remove static. (dump_ranger): Dump function name. --- diff --git a/gcc/gimple-range-trace.cc b/gcc/gimple-range-trace.cc index 1feb978e9284..449ed8373fd5 100644 --- a/gcc/gimple-range-trace.cc +++ b/gcc/gimple-range-trace.cc @@ -130,7 +130,7 @@ range_tracer::trailer (unsigned counter, const char *caller, bool result, // Query all statements in the IL to precalculate computable ranges in RANGER. -static DEBUG_FUNCTION void +DEBUG_FUNCTION void debug_seed_ranger (gimple_ranger &ranger) { // Recalculate SCEV to make sure the dump lists everything. @@ -161,6 +161,11 @@ DEBUG_FUNCTION void dump_ranger (FILE *out) { gimple_ranger ranger; + + fprintf (out, ";; Function "); + print_generic_expr (out, current_function_decl); + fprintf (out, "\n"); + debug_seed_ranger (ranger); ranger.dump (out); }