[cfgloop] PR middle-end/68375: Restructure get_loop_body_in_bfs_order to handle loops...
authorKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 24 Nov 2015 11:03:51 +0000 (11:03 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Tue, 24 Nov 2015 11:03:51 +0000 (11:03 +0000)
commit895548a571810f574a7f2a5ebdf6efa3250fa993
tree764f838fee6d420fb2d792bc03d1db13516096df
parent3788cfb513d19a9b36311b1317aff2141a2c6a65
[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.

From-SVN: r230798
gcc/ChangeLog
gcc/cfgloop.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68375.c [new file with mode: 0644]