[cfgloop] PR middle-end/68375: Restructure get_loop_body_in_bfs_order to handle loops...
commit6674f8f4860ae57efba5770d90ecb12b3f31a097
authorktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Nov 2015 11:03:51 +0000 (24 11:03 +0000)
committerktkachov <ktkachov@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 24 Nov 2015 11:03:51 +0000 (24 11:03 +0000)
tree764f838fee6d420fb2d792bc03d1db13516096df
parent7e436644adab6979563e1388d0ac8ded2ec1d39f
[cfgloop] PR middle-end/68375: Restructure get_loop_body_in_bfs_order to handle loops with only a header

PR middle-end/68375
* cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
bogus assertion.

* gcc.dg/pr68375.c: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@230798 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/cfgloop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68375.c [new file with mode: 0644]