[Bug middle-end/98205] ICE in expand_omp_for_generic, at omp-expand.c:4307

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 20 23:30:43 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98205

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-9 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:6f0a0d1c2bb7ad2020852ccf14ca86967ddb134a

commit r9-9400-g6f0a0d1c2bb7ad2020852ccf14ca86967ddb134a
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Thu Dec 10 11:07:07 2020 +0100

    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)


More information about the Gcc-bugs mailing list