diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-16 13:34:34 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-16 13:34:34 +0000 |
commit | 46412a373a530ead8448abe35705577d223ff1a5 (patch) | |
tree | 41e1ad4097935bc77cbf6d58f2b8d967d25d101f /gcc/tree-pretty-print.c | |
parent | d4cae31e732f51391c2b50e03828e2466db06a2d (diff) | |
download | gcc-46412a373a530ead8448abe35705577d223ff1a5.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@135417 138bc75d-0d04-0410-961f-82ee72b054a4
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 69e5e73bda8..811c195e126 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); |