public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/102415] New: [12 Regression] ICE in bb_seq_addr, at gimple.h:1786
@ 2021-09-20 19:04 gscfq@t-online.de
2021-09-20 19:07 ` [Bug c/102415] " jakub at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: gscfq@t-online.de @ 2021-09-20 19:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102415
Bug ID: 102415
Summary: [12 Regression] ICE in bb_seq_addr, at gimple.h:1786
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Started between 20210808 and 20210822 :
$ cat z1.c
void abort ();
void f ()
{
#pragma omp scope nowait
abort ();
}
$ gcc-12-20210919 -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 scope nowait
| ^~~
0xbdd88f crash_signal
../../gcc/toplev.c:328
0x176a67a bb_seq_addr
../../gcc/gimple.h:1786
0x176a67a gsi_last_bb
../../gcc/gimple-iterator.h:164
0x176a67a gsi_last_nondebug_bb
../../gcc/gimple-iterator.h:306
0x176a67a expand_omp_single
../../gcc/omp-expand.c:8441
0x176a67a expand_omp
../../gcc/omp-expand.c:10246
0x176c63d execute_expand_omp
../../gcc/omp-expand.c:10467
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/102415] [12 Regression] ICE in bb_seq_addr, at gimple.h:1786
2021-09-20 19:04 [Bug c/102415] New: [12 Regression] ICE in bb_seq_addr, at gimple.h:1786 gscfq@t-online.de
@ 2021-09-20 19:07 ` jakub at gcc dot gnu.org
2021-09-20 22:44 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-09-20 19:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102415
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
CC| |jakub at gcc dot gnu.org
Last reconfirmed| |2021-09-20
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c/102415] [12 Regression] ICE in bb_seq_addr, at gimple.h:1786
2021-09-20 19:04 [Bug c/102415] New: [12 Regression] ICE in bb_seq_addr, at gimple.h:1786 gscfq@t-online.de
2021-09-20 19:07 ` [Bug c/102415] " jakub at gcc dot gnu.org
@ 2021-09-20 22:44 ` pinskia at gcc dot gnu.org
2021-09-21 18:25 ` [Bug middle-end/102415] " jakub at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-09-20 22:44 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102415
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |12.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/102415] [12 Regression] ICE in bb_seq_addr, at gimple.h:1786
2021-09-20 19:04 [Bug c/102415] New: [12 Regression] ICE in bb_seq_addr, at gimple.h:1786 gscfq@t-online.de
2021-09-20 19:07 ` [Bug c/102415] " jakub at gcc dot gnu.org
2021-09-20 22:44 ` pinskia at gcc dot gnu.org
@ 2021-09-21 18:25 ` jakub at gcc dot gnu.org
2021-09-22 7:36 ` cvs-commit at gcc dot gnu.org
2021-09-22 11:49 ` jakub at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-09-21 18:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102415
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Created attachment 51491
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51491&action=edit
gcc12-pr102415.patch
Untested fix.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/102415] [12 Regression] ICE in bb_seq_addr, at gimple.h:1786
2021-09-20 19:04 [Bug c/102415] New: [12 Regression] ICE in bb_seq_addr, at gimple.h:1786 gscfq@t-online.de
` (2 preceding siblings ...)
2021-09-21 18:25 ` [Bug middle-end/102415] " jakub at gcc dot gnu.org
@ 2021-09-22 7:36 ` cvs-commit at gcc dot gnu.org
2021-09-22 11:49 ` jakub at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-09-22 7:36 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102415
--- 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:c4432b2776aeeffee9125bf87ff937e4a8907bbd
commit r12-3779-gc4432b2776aeeffee9125bf87ff937e4a8907bbd
Author: Jakub Jelinek <jakub@redhat.com>
Date: Wed Sep 22 09:32:32 2021 +0200
openmp: Fix OpenMP expansion of scope with non-fallthrugh body [PR102415]
I've used function for omp single expansion also for omp scope. That is
mostly ok, but as the testcase shows, there is one important difference.
The omp single expansion always has a fallthru body, because it during
omp lowering expands the body as if wrapped in an if to simulate that
one thread runs the body and others wait (unless nowait) until it completes
and continue. omp scope is invoked by all threads and so if the body
is non-fallthru, the barrier (unless nowait) at the end will not be reached
by any of the threads.
The following patch fixes that by handling the case where cfg pass
optimizes
away the exit bb of it gracefully.
2021-09-22 Jakub Jelinek <jakub@redhat.com>
PR middle-end/102415
* omp-expand.c (expand_omp_single): If region->exit is NULL,
assert region->entry is GIMPLE_OMP_SCOPE region and return.
* c-c++-common/gomp/scope-3.c: New test.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/102415] [12 Regression] ICE in bb_seq_addr, at gimple.h:1786
2021-09-20 19:04 [Bug c/102415] New: [12 Regression] ICE in bb_seq_addr, at gimple.h:1786 gscfq@t-online.de
` (3 preceding siblings ...)
2021-09-22 7:36 ` cvs-commit at gcc dot gnu.org
@ 2021-09-22 11:49 ` jakub at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: jakub at gcc dot gnu.org @ 2021-09-22 11:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102415
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2021-09-22 11:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-20 19:04 [Bug c/102415] New: [12 Regression] ICE in bb_seq_addr, at gimple.h:1786 gscfq@t-online.de
2021-09-20 19:07 ` [Bug c/102415] " jakub at gcc dot gnu.org
2021-09-20 22:44 ` pinskia at gcc dot gnu.org
2021-09-21 18:25 ` [Bug middle-end/102415] " jakub at gcc dot gnu.org
2021-09-22 7:36 ` cvs-commit at gcc dot gnu.org
2021-09-22 11:49 ` jakub 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).