re PR middle-end/81768 (error: control flow in the middle of basic block)
authorJakub Jelinek <jakub@redhat.com>
Tue, 5 Sep 2017 21:32:35 +0000 (23:32 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 5 Sep 2017 21:32:35 +0000 (23:32 +0200)
commit0fe4bc787a5dccb0d22ee3872cfeb5c4663b144b
tree5df424d34db5c6d8618697d77d9b105f1c31609c
parentbcc6842ba5563b075ed2946de20151928f572aca
re PR middle-end/81768 (error: control flow in the middle of basic block)

PR middle-end/81768
* omp-low.c (lower_omp_for): Recompute tree invariant if
gimple_omp_for_initial/final is ADDR_EXPR.

* gcc.dg/gomp/pr81768-2.c: New test.

From-SVN: r251742
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/gomp/pr81768-2.c [new file with mode: 0644]