]> gcc.gnu.org Git - gcc.git/commit
openmp: Fix ICE with broken doacross loop [PR98205]
authorJakub Jelinek <jakub@redhat.com>
Thu, 10 Dec 2020 10:07:07 +0000 (11:07 +0100)
committerJakub Jelinek <jakub@redhat.com>
Tue, 20 Apr 2021 23:28:06 +0000 (01:28 +0200)
commit6f0a0d1c2bb7ad2020852ccf14ca86967ddb134a
tree514ebc1b4f91d61ee476f1aa572564f1a98a8cad
parent22b900e2db91095414832a83ae5761e689c676e7
openmp: Fix ICE with broken doacross loop [PR98205]

If the loop body doesn't ever continue, we don't have a bb to insert the
updates.  Fixed by not adding them at all in that case.

2020-12-10  Jakub Jelinek  <jakub@redhat.com>

PR middle-end/98205
* omp-expand.c (expand_omp_for_generic): Fix up broken_loop handling.

* c-c++-common/gomp/doacross-4.c: New test.

(cherry picked from commit c925d4cebf817905c237aa2d93887f254b4a74f4)
gcc/omp-expand.c
gcc/testsuite/c-c++-common/gomp/doacross-4.c [new file with mode: 0644]
This page took 0.056125 seconds and 5 git commands to generate.