public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug middle-end/97862] [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524
Date: Wed, 18 Nov 2020 08:43:29 +0000	[thread overview]
Message-ID: <bug-97862-4-WDMhqeK9lx@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-97862-4@http.gcc.gnu.org/bugzilla/>

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 <jakub@gcc.gnu.org>:

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

commit r11-5121-gba009860aec4619f2424f5bdee812f14572dc3cc
Author: Jakub Jelinek <jakub@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  <jakub@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.

  parent reply	other threads:[~2020-11-18  8:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-16 19:05 [Bug c/97862] New: " gscfq@t-online.de
2020-11-16 19:38 ` [Bug c/97862] " jakub at gcc dot gnu.org
2020-11-16 19:47 ` [Bug middle-end/97862] " marxin at gcc dot gnu.org
2020-11-16 20:01 ` jakub at gcc dot gnu.org
2020-11-17  7:16 ` rguenth at gcc dot gnu.org
2020-11-17 14:54 ` jakub at gcc dot gnu.org
2020-11-18  8:43 ` cvs-commit at gcc dot gnu.org [this message]
2020-11-18 13:46 ` jakub at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-97862-4-WDMhqeK9lx@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).