public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3334] Add function name when dumping ranger contents.
@ 2021-09-03 13:32 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2021-09-03 13:32 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:4db10cbf21dfe48e72880f592c1b5640baaf16cf

commit r12-3334-g4db10cbf21dfe48e72880f592c1b5640baaf16cf
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Fri Sep 3 11:32:11 2021 +0200

    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:
---
 gcc/gimple-range-trace.cc | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gcc/gimple-range-trace.cc b/gcc/gimple-range-trace.cc
index 1feb978e928..449ed8373fd 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);
 }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-03 13:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-03 13:32 [gcc r12-3334] Add function name when dumping ranger contents Aldy Hernandez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).