diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2021-09-19 16:54:21 +0200 |
---|---|---|
committer | Aldy Hernandez <aldyh@redhat.com> | 2021-09-19 17:40:34 +0200 |
commit | 8d42a27d8942e16e351d138955280a848d7b432a (patch) | |
tree | 65e0b21038c9da0cc2352d77bb0b56727fa9672f /gcc/gimple-range-path.cc | |
parent | 5fee8a0a9223d030c66d53c104fb0a431369248f (diff) | |
download | gcc-8d42a27d8942e16e351d138955280a848d7b432a.zip gcc-8d42a27d8942e16e351d138955280a848d7b432a.tar.gz gcc-8d42a27d8942e16e351d138955280a848d7b432a.tar.bz2 |
Make dump_ranger routines externally visible.
There was an inline extern declaration for dump_ranger that was a bit of
a hack. I've removed it in favor of an actual prototype. There are
also some trivial changes to the dumping code in the path solver.
gcc/ChangeLog:
* gimple-range-path.cc (path_range_query::path_range_query): Add
header.
(path_range_query::dump): Remove extern declaration of dump_ranger.
* gimple-range-trace.cc (dump_ranger): Add DEBUG_FUNCTION marker.
* gimple-range-trace.h (dump_ranger): Add prototype.
Diffstat (limited to 'gcc/gimple-range-path.cc')
-rw-r--r-- | gcc/gimple-range-path.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/gimple-range-path.cc b/gcc/gimple-range-path.cc index c616b65..10b018b 100644 --- a/gcc/gimple-range-path.cc +++ b/gcc/gimple-range-path.cc @@ -37,6 +37,9 @@ along with GCC; see the file COPYING3. If not see path_range_query::path_range_query (gimple_ranger &ranger) : m_ranger (ranger) { + if (DEBUG_SOLVER) + fprintf (dump_file, "\n*********** path_range_query ******************\n"); + m_cache = new ssa_global_cache; m_has_cache_entry = BITMAP_ALLOC (NULL); m_path = NULL; @@ -85,14 +88,15 @@ path_range_query::set_cache (const irange &r, tree name) void path_range_query::dump (FILE *dump_file) { + push_dump_file save (dump_file, dump_flags & ~TDF_DETAILS); + if (m_path->is_empty ()) return; unsigned i; bitmap_iterator bi; - extern void dump_ranger (FILE *, const vec<basic_block> &); - fprintf (dump_file, "Path is (length=%d):\n", m_path->length ()); + fprintf (dump_file, "\nPath is (length=%d):\n", m_path->length ()); dump_ranger (dump_file, *m_path); fprintf (dump_file, "Imports:\n"); |