Add overloaded debug_bb and debug_bb_n with dump flags
authorXionghu Luo <luoxhu@linux.ibm.com>
Mon, 26 Oct 2020 07:52:39 +0000 (02:52 -0500)
committerXionghu Luo <luoxhu@linux.ibm.com>
Mon, 26 Oct 2020 07:52:39 +0000 (02:52 -0500)
commita7d153ab8471bde05a9883d4cda9319ff89ea14b
treeea3c2aca296b23430c3d8207e1275e908eae1016
parent9651cba4360ef7fbdff4f64faf9f650e1246a5c1
Add overloaded debug_bb and debug_bb_n with dump flags

Add overloads that accept a flags argument so we can print
debug_bb_n (5, TDF_DETAILS) in gdb, also the debug_bb_slim
variant would then be just a forwarder.

gcc/ChangeLog:

2020-10-26  Xionghu Luo  <luoxhu@linux.ibm.com>

* cfg.c (debug_bb): New overloaded function.
(debug_bb_n): New overloaded function.
* cfg.h (debug_bb): New declaration.
(debug_bb_n): New declaration.
* print-rtl.c (debug_bb_slim): Call debug_bb with flags.
gcc/cfg.c
gcc/cfg.h
gcc/print-rtl.c