print_rtx_function: integrate dumping of the CFG into the insn chain
commita040ca7ae8cf320220ddc135d834d78153fa38d7
authordmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2016 14:59:56 +0000 (12 14:59 +0000)
committerdmalcolm <dmalcolm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 12 Oct 2016 14:59:56 +0000 (12 14:59 +0000)
tree6f600c5fed34a8cdcd35c7c128cf15b652125813
parentc1276ee1b145d3521d0b619d4701fbca3afe22e0
print_rtx_function: integrate dumping of the CFG into the insn chain

gcc/ChangeLog:
* function-tests.c: Include "print-rtl.h".
(selftest::test_expansion_to_rtl): Call print_rtx_function on the
function, and verify what is dumped.
* print-rtl-function.c (print_edge): New function.
(begin_any_block): New function.
(end_any_block): New function.
(can_have_basic_block_p): New function.
(print_rtx_function): Track the basic blocks of insns in the
chain, wrapping those that are within blocks within "(block)"
directives.  Remove the "(cfg)" directive.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@241057 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/function-tests.c
gcc/print-rtl-function.c