diff options
author | Aldy Hernandez <aldyh@redhat.com> | 2017-11-20 08:32:57 +0000 |
---|---|---|
committer | Aldy Hernandez <aldyh@gcc.gnu.org> | 2017-11-20 08:32:57 +0000 |
commit | 19a30b7123aa90caf7de3e9ec588266e218f8028 (patch) | |
tree | 32e5e7fae29ce15cabb6a27c2982ccabef10c491 /gcc/cfghooks.c | |
parent | 7cfaa4c643eabd8d5aaa74a8406f0bf4880b8fe6 (diff) | |
download | gcc-19a30b7123aa90caf7de3e9ec588266e218f8028.zip gcc-19a30b7123aa90caf7de3e9ec588266e218f8028.tar.gz gcc-19a30b7123aa90caf7de3e9ec588266e218f8028.tar.bz2 |
vec.h (debug_helper): New function.
* vec.h (debug_helper): New function.
(DEFINE_DEBUG_VEC): New macro.
* hash-set.h (debug_helper): New function.
(DEFINE_DEBUG_HASH_SET): New macro.
* cfg.c (debug_slim (edge)): New function.
Call DEFINE_DEBUG_VEC for edges.
Call DEFINE_DEBUG_HASH_SET for edges.
* cfghooks.c (debug_slim (basic_block)): New function.
Call DEFINE_DEBUG_VEC for basic blocks.
Call DEFINE_DEBUG_HASH_SET for basic blocks.
* print-tree.c (debug_slim): New function to handle trees.
Call DEFINE_DEBUG_VEC for trees.
Call DEFINE_DEBUG_HASH_SET for trees.
(debug (vec<tree, va_gc>) &): Remove.
(debug (<vec<tree, va_gc>) *): Remove.
* print-rtl.c (debug_slim): New function to handle const_rtx.
Call DEFINE_DEBUG_VEC for rtx_def.
Call DEFINE_DEBUG_VEC for rtx_insn.
Call DEFINE_DEBUG_HASH_SET for rtx_def.
Call DEFINE_DEBUG_HASH_SET for rtx_insn.
* sel-sched-dump.c (debug (vec<rtx_insn *> &): Remove.
(debug (vec<rtx_insn *> *ptr): Remove.
(debug_insn_vector): Remove.
* stor-layout.c (debug_rli): Call debug() instead of debug_vec_tree.
From-SVN: r254945
Diffstat (limited to 'gcc/cfghooks.c')
-rw-r--r-- | gcc/cfghooks.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cfghooks.c b/gcc/cfghooks.c index 4a22424..2bee65a 100644 --- a/gcc/cfghooks.c +++ b/gcc/cfghooks.c @@ -300,6 +300,14 @@ debug (basic_block_def *ptr) fprintf (stderr, "<nil>\n"); } +static void +debug_slim (basic_block ptr) +{ + fprintf (stderr, "<basic_block %p (%d)>", (void *) ptr, ptr->index); +} + +DEFINE_DEBUG_VEC (basic_block_def *) +DEFINE_DEBUG_HASH_SET (basic_block_def *) /* Dumps basic block BB to pretty-printer PP, for use as a label of a DOT graph record-node. The implementation of this hook is |