public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3975] Add gimple_ranger::debug.
@ 2021-09-30  6:10 Aldy Hernandez
  0 siblings, 0 replies; only message in thread
From: Aldy Hernandez @ 2021-09-30  6:10 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:257fd0333fe9fe5b0b4f9fddde50a09afa82b2ef

commit r12-3975-g257fd0333fe9fe5b0b4f9fddde50a09afa82b2ef
Author: Aldy Hernandez <aldyh@redhat.com>
Date:   Wed Sep 29 20:50:20 2021 +0200

    Add gimple_ranger::debug.
    
    I'm trying to add one debug() for each dump() to the dumping aids.
    
    Tested on x86-64 Linux.
    
    gcc/ChangeLog:
    
            * gimple-range.cc (gimple_ranger::debug): New.
            * gimple-range.h (class gimple_ranger): Add debug.

Diff:
---
 gcc/gimple-range.cc | 6 ++++++
 gcc/gimple-range.h  | 1 +
 2 files changed, 7 insertions(+)

diff --git a/gcc/gimple-range.cc b/gcc/gimple-range.cc
index d4108db1855..6eb3f71bbd3 100644
--- a/gcc/gimple-range.cc
+++ b/gcc/gimple-range.cc
@@ -412,6 +412,12 @@ gimple_ranger::dump (FILE *f)
   m_cache.dump (f);
 }
 
+void
+gimple_ranger::debug ()
+{
+  dump (stderr);
+}
+
 /* Create a new ranger instance and associate it with function FUN.
    Each call must be paired with a call to disable_ranger to release
    resources.  */
diff --git a/gcc/gimple-range.h b/gcc/gimple-range.h
index 191a075a1b0..0713af40fcd 100644
--- a/gcc/gimple-range.h
+++ b/gcc/gimple-range.h
@@ -55,6 +55,7 @@ public:
   void export_global_ranges ();
   inline gori_compute &gori ()  { return m_cache.m_gori; }
   virtual void dump (FILE *f) OVERRIDE;
+  void debug ();
   void dump_bb (FILE *f, basic_block bb);
   auto_edge_flag non_executable_edge_flag;
 protected:


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

only message in thread, other threads:[~2021-09-30  6:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-30  6:10 [gcc r12-3975] Add gimple_ranger::debug 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).