Improve readability of debug_tree() dumps for SSA_NAME and VECTOR_CST
authorPatrick Palka <ppalka@gcc.gnu.org>
Mon, 22 Aug 2016 15:13:16 +0000 (15:13 +0000)
committerPatrick Palka <ppalka@gcc.gnu.org>
Mon, 22 Aug 2016 15:13:16 +0000 (15:13 +0000)
commit1321723711ff8d2446da3eb2eb1830e6c172982b
treee2384c92d1ec0bed6e70276c4ca04e35c2ca8675
parent6dc198e3a58a7acc5874f8912180f0a8ec8554c6
Improve readability of debug_tree() dumps for SSA_NAME and VECTOR_CST

gcc/ChangeLog:

* print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
identical consecutive elements.
[SSA_NAME]: Print the name's def stmt on its own line.  When printing
the node's def stmt, avoid printing an unwanted trailing newline by
replacing the call to print_gimple_stmt() with its inlined body and
adjusting it to not set pp_needs_newline and to call pp_flush()
instead of pp_newline_and_flush().

From-SVN: r239661
gcc/ChangeLog
gcc/print-tree.c