public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/98205] New: ICE in expand_omp_for_generic, at omp-expand.c:4307
@ 2020-12-08 17:40 gscfq@t-online.de
2020-12-09 12:02 ` [Bug middle-end/98205] " jakub at gcc dot gnu.org
` (6 more replies)
0 siblings, 7 replies; 8+ messages in thread
From: gscfq@t-online.de @ 2020-12-08 17:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98205
Bug ID: 98205
Summary: ICE in expand_omp_for_generic, at omp-expand.c:4307
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Affects versions down to r6 :
$ cat z1.c
void f (int n)
{
int i;
#pragma omp for ordered(1)
for (i = 0; i < 8; i += n)
for (;;);
}
$ gcc-11-20201206 -c z1.c -fopenmp
during GIMPLE pass: ompexp
z1.c: In function 'f':
z1.c:4:11: internal compiler error: Segmentation fault
4 | #pragma omp for ordered(1)
| ^~~
0xd2670f crash_signal
../../gcc/toplev.c:327
0x1880c99 bb_seq_addr
../../gcc/gimple.h:1764
0x1880c99 gsi_last_bb
../../gcc/gimple-iterator.h:164
0x1880c99 expand_omp_for_generic
../../gcc/omp-expand.c:4307
0x18852c9 expand_omp_for
../../gcc/omp-expand.c:8107
0x188616a expand_omp
../../gcc/omp-expand.c:9901
0x188802d execute_expand_omp
../../gcc/omp-expand.c:10133
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/98205] ICE in expand_omp_for_generic, at omp-expand.c:4307
2020-12-08 17:40 [Bug c/98205] New: ICE in expand_omp_for_generic, at omp-expand.c:4307 gscfq@t-online.de
@ 2020-12-09 12:02 ` jakub at gcc dot gnu.org
2020-12-10 10:08 ` cvs-commit at gcc dot gnu.org
` (5 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2020-12-09 12:02 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98205
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Last reconfirmed| |2020-12-09
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 49712
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49712&action=edit
gcc11-pr98205.patch
Untested fix.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/98205] ICE in expand_omp_for_generic, at omp-expand.c:4307
2020-12-08 17:40 [Bug c/98205] New: ICE in expand_omp_for_generic, at omp-expand.c:4307 gscfq@t-online.de
2020-12-09 12:02 ` [Bug middle-end/98205] " jakub at gcc dot gnu.org
@ 2020-12-10 10:08 ` cvs-commit at gcc dot gnu.org
2021-01-06 9:39 ` cvs-commit at gcc dot gnu.org
` (4 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2020-12-10 10:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98205
--- Comment #2 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:a2a17ae7d85e420db5fe0c7ab2f59a470e2c7a78
commit r11-5897-ga2a17ae7d85e420db5fe0c7ab2f59a470e2c7a78
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.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/98205] ICE in expand_omp_for_generic, at omp-expand.c:4307
2020-12-08 17:40 [Bug c/98205] New: ICE in expand_omp_for_generic, at omp-expand.c:4307 gscfq@t-online.de
2020-12-09 12:02 ` [Bug middle-end/98205] " jakub at gcc dot gnu.org
2020-12-10 10:08 ` cvs-commit at gcc dot gnu.org
@ 2021-01-06 9:39 ` cvs-commit at gcc dot gnu.org
2021-04-20 23:30 ` cvs-commit at gcc dot gnu.org
` (3 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-01-06 9:39 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98205
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-10 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:c925d4cebf817905c237aa2d93887f254b4a74f4
commit r10-9219-gc925d4cebf817905c237aa2d93887f254b4a74f4
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 a2a17ae7d85e420db5fe0c7ab2f59a470e2c7a78)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/98205] ICE in expand_omp_for_generic, at omp-expand.c:4307
2020-12-08 17:40 [Bug c/98205] New: ICE in expand_omp_for_generic, at omp-expand.c:4307 gscfq@t-online.de
` (2 preceding siblings ...)
2021-01-06 9:39 ` cvs-commit at gcc dot gnu.org
@ 2021-04-20 23:30 ` cvs-commit at gcc dot gnu.org
2021-04-22 16:49 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-20 23:30 UTC (permalink / raw)
To: gcc-bugs
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)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/98205] ICE in expand_omp_for_generic, at omp-expand.c:4307
2020-12-08 17:40 [Bug c/98205] New: ICE in expand_omp_for_generic, at omp-expand.c:4307 gscfq@t-online.de
` (3 preceding siblings ...)
2021-04-20 23:30 ` cvs-commit at gcc dot gnu.org
@ 2021-04-22 16:49 ` cvs-commit at gcc dot gnu.org
2021-04-22 17:08 ` jakub at gcc dot gnu.org
2021-09-11 14:22 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-04-22 16:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98205
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-8 branch has been updated by Jakub Jelinek
<jakub@gcc.gnu.org>:
https://gcc.gnu.org/g:a66e756ea9cf1ce8f2c73bd29bfe7ed785fae89a
commit r8-10868-ga66e756ea9cf1ce8f2c73bd29bfe7ed785fae89a
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)
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/98205] ICE in expand_omp_for_generic, at omp-expand.c:4307
2020-12-08 17:40 [Bug c/98205] New: ICE in expand_omp_for_generic, at omp-expand.c:4307 gscfq@t-online.de
` (4 preceding siblings ...)
2021-04-22 16:49 ` cvs-commit at gcc dot gnu.org
@ 2021-04-22 17:08 ` jakub at gcc dot gnu.org
2021-09-11 14:22 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-04-22 17:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98205
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Bug middle-end/98205] ICE in expand_omp_for_generic, at omp-expand.c:4307
2020-12-08 17:40 [Bug c/98205] New: ICE in expand_omp_for_generic, at omp-expand.c:4307 gscfq@t-online.de
` (5 preceding siblings ...)
2021-04-22 17:08 ` jakub at gcc dot gnu.org
@ 2021-09-11 14:22 ` pinskia at gcc dot gnu.org
6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-11 14:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98205
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |8.5
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-09-11 14:22 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-08 17:40 [Bug c/98205] New: ICE in expand_omp_for_generic, at omp-expand.c:4307 gscfq@t-online.de
2020-12-09 12:02 ` [Bug middle-end/98205] " jakub at gcc dot gnu.org
2020-12-10 10:08 ` cvs-commit at gcc dot gnu.org
2021-01-06 9:39 ` cvs-commit at gcc dot gnu.org
2021-04-20 23:30 ` cvs-commit at gcc dot gnu.org
2021-04-22 16:49 ` cvs-commit at gcc dot gnu.org
2021-04-22 17:08 ` jakub at gcc dot gnu.org
2021-09-11 14:22 ` pinskia at gcc dot gnu.org
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).