diff options
author | Kenneth Zadeck <zadeck@naturalbridge.com> | 2008-05-16 13:34:34 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2008-05-16 09:34:34 -0400 |
commit | 3e894af1569a84c5bb6eb730266248e6a4cae2de (patch) | |
tree | 41e1ad4097935bc77cbf6d58f2b8d967d25d101f /gcc/tree-pretty-print.c | |
parent | 4fc4d8507ed500b25bf558875b1c011ce36e4647 (diff) | |
download | gcc-3e894af1569a84c5bb6eb730266248e6a4cae2de.zip gcc-3e894af1569a84c5bb6eb730266248e6a4cae2de.tar.gz gcc-3e894af1569a84c5bb6eb730266248e6a4cae2de.tar.bz2 |
invoke.text (-fdump-tree-*-verbose): New option.
2008-05-16 Kenneth Zadeck <zadeck@naturalbridge.com>
* doc/invoke.text (-fdump-tree-*-verbose): New option.
* tree-dump.c (dump_options): New verbose option.
* tree-pretty-print.c (dump_phi_nodes, dump_generic_bb_buff):
Add verbose dump.
* tree-pass.h (TDF_VERBOSE): New dump flag.
* print-tree.c (print_node): Added code to be able to print
PHI_NODES.
(tree-flow.h): Added include.
Makefile.in (print-tree.o): Added TREE_FLOW_H.
From-SVN: r135417
Diffstat (limited to 'gcc/tree-pretty-print.c')
-rw-r--r-- | gcc/tree-pretty-print.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gcc/tree-pretty-print.c b/gcc/tree-pretty-print.c index 69e5e73..811c195 100644 --- a/gcc/tree-pretty-print.c +++ b/gcc/tree-pretty-print.c @@ -436,10 +436,10 @@ dump_symbols (pretty_printer *buffer, bitmap syms, int flags) } -/* Dump the node NODE on the pretty_printer BUFFER, SPC spaces of indent. - FLAGS specifies details to show in the dump (see TDF_* in tree-pass.h). - If IS_STMT is true, the object printed is considered to be a statement - and it is terminated by ';' if appropriate. */ +/* Dump the node NODE on the pretty_printer BUFFER, SPC spaces of + indent. FLAGS specifies details to show in the dump (see TDF_* in + tree-pass.h). If IS_STMT is true, the object printed is considered + to be a statement and it is terminated by ';' if appropriate. */ int dump_generic_node (pretty_printer *buffer, tree node, int spc, int flags, @@ -3052,6 +3052,8 @@ dump_phi_nodes (pretty_printer *buffer, basic_block bb, int indent, int flags) pp_string (buffer, "# "); dump_generic_node (buffer, phi, indent, flags, false); pp_newline (buffer); + if (flags & TDF_VERBOSE) + print_node (buffer->buffer->stream, "", phi, indent); } } } @@ -3170,6 +3172,8 @@ dump_generic_bb_buff (pretty_printer *buffer, basic_block bb, dump_generic_node (buffer, stmt, curr_indent, flags, true); pp_newline (buffer); dump_histograms_for_stmt (cfun, buffer->buffer->stream, stmt); + if (flags & TDF_VERBOSE) + print_node (buffer->buffer->stream, "", stmt, curr_indent); } dump_implicit_edges (buffer, bb, indent, flags); |