* [Bug c/97862] [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524
2020-11-16 19:05 [Bug c/97862] New: [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524 gscfq@t-online.de
@ 2020-11-16 19:38 ` jakub at gcc dot gnu.org
2020-11-16 19:47 ` [Bug middle-end/97862] " marxin at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-11-16 19:38 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97862
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
CC| |jakub at gcc dot gnu.org
Status|UNCONFIRMED |ASSIGNED
Target Milestone|--- |11.0
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Last reconfirmed| |2020-11-16
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/97862] [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524
2020-11-16 19:05 [Bug c/97862] New: [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524 gscfq@t-online.de
2020-11-16 19:38 ` [Bug c/97862] " jakub at gcc dot gnu.org
@ 2020-11-16 19:47 ` marxin at gcc dot gnu.org
2020-11-16 20:01 ` jakub at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: marxin at gcc dot gnu.org @ 2020-11-16 19:47 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97862
Martin Liška <marxin at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |marxin at gcc dot gnu.org
--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r6-4544-ge01d41e553aae245.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/97862] [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524
2020-11-16 19:05 [Bug c/97862] New: [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524 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
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-11-16 20:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97862
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
With r11-1967-g5acef69f9d3d9f3c537b5e5157519edf02f86c4d actually.
The version you've mentioned started (properly) rejecting it, this wasn't valid
in OpenMP 4.5, but is valid in 5.0 and for GCC11 the support has been added.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/97862] [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524
2020-11-16 19:05 [Bug c/97862] New: [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524 gscfq@t-online.de
` (2 preceding siblings ...)
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
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu.org @ 2020-11-17 7:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97862
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P1
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/97862] [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524
2020-11-16 19:05 [Bug c/97862] New: [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524 gscfq@t-online.de
` (3 preceding siblings ...)
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
2020-11-18 13:46 ` jakub at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-11-17 14:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97862
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 49576
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49576&action=edit
gcc11-pr97862.patch
Untested fix.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/97862] [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524
2020-11-16 19:05 [Bug c/97862] New: [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524 gscfq@t-online.de
` (4 preceding siblings ...)
2020-11-17 14:54 ` jakub at gcc dot gnu.org
@ 2020-11-18 8:43 ` cvs-commit at gcc dot gnu.org
2020-11-18 13:46 ` jakub at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-11-18 8:43 UTC (permalink / raw)
To: gcc-bugs
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/97862] [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524
2020-11-16 19:05 [Bug c/97862] New: [11 Regression] ICE in expand_omp_for_init_vars, at omp-expand.c:2524 gscfq@t-online.de
` (5 preceding siblings ...)
2020-11-18 8:43 ` cvs-commit at gcc dot gnu.org
@ 2020-11-18 13:46 ` jakub at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-11-18 13:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97862
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread