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

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

https://gcc.gnu.org/g:ba009860aec4619f2424f5bdee812f14572dc3cc

commit r11-5121-gba009860aec4619f2424f5bdee812f14572dc3cc
Author: Jakub Jelinek <ja...@redhat.com>
Date:   Wed Nov 18 09:40:45 2020 +0100

    openmp: Fix ICE on non-rectangular loop with known 0 iterations

    The loops in the testcase are non-rectangular and have 0 iterations
    (the outer loop iterates, but the inner one never).  In this case we
    just have the overall number of iterations computed (0), and don't have
    factor and other values computed.  We never need to map logical iterations
    to the individual iterations in that case, and we were crashing during
    expansion of that code.

    2020-11-18  Jakub Jelinek  <ja...@redhat.com>

            PR middle-end/97862
            * omp-expand.c (expand_omp_for_init_vars): Don't use the sqrt path
            if number of iterations is constant 0.

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

Reply via email to