re PR middle-end/59152 (ICE: loop 2's latch does not have an edge to its header with...
authorJakub Jelinek <jakub@redhat.com>
Tue, 26 Nov 2013 20:38:10 +0000 (21:38 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 26 Nov 2013 20:38:10 +0000 (21:38 +0100)
commit01dde9b0e98f435232dd99d8128cd1087066d5ef
tree697c5fd4bd088240771a52a5b6bab0b09daef6b6
parentda719a9f8e8e542e78460c648f36649164666e9d
re PR middle-end/59152 (ICE: loop 2's latch does not have an edge to its header with -fopenmp -fipa-pure-const)

PR middle-end/59152
* omp-low.c (expand_omp_for_static_chunk): Don't set loop->latch
for the inner loop if collapse_bb is non-NULL.
(expand_omp_simd): Use cont_bb rather than e->dest as latch.

* c-c++-common/gomp/pr59152.c: New test.

From-SVN: r205410
gcc/ChangeLog
gcc/omp-low.c
gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/gomp/pr59152.c [new file with mode: 0644]