public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/67502] New: ICE with collapsed for simd loop inside of parallel
@ 2015-09-08 16:06 jakub at gcc dot gnu.org
2015-09-08 16:07 ` [Bug c/67502] " jakub at gcc dot gnu.org
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-09-08 16:06 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67502
Bug ID: 67502
Summary: ICE with collapsed for simd loop inside of parallel
Product: gcc
Version: 5.2.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
Target Milestone: ---
With C (-std=gnu99) we ICE on:
void bar (void);
void
foo (void)
{
#pragma omp parallel
#pragma omp for simd collapse(2)
for (int i1 = 0; i1 < 16; ++i1)
for (int i2 = 0; i2 < 16; ++i2)
bar ();
}
It is fine without the parallel, or with just simd instead of for simd, or with
C++.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/67502] ICE with collapsed for simd loop inside of parallel
2015-09-08 16:06 [Bug c/67502] New: ICE with collapsed for simd loop inside of parallel jakub at gcc dot gnu.org
@ 2015-09-08 16:07 ` jakub at gcc dot gnu.org
2015-09-10 7:29 ` jakub at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-09-08 16:07 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67502
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code, openmp
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2015-09-08
Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org
Target Milestone|--- |5.3
Ever confirmed|0 |1
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/67502] ICE with collapsed for simd loop inside of parallel
2015-09-08 16:06 [Bug c/67502] New: ICE with collapsed for simd loop inside of parallel jakub at gcc dot gnu.org
2015-09-08 16:07 ` [Bug c/67502] " jakub at gcc dot gnu.org
@ 2015-09-10 7:29 ` jakub at gcc dot gnu.org
2015-09-10 7:37 ` jakub at gcc dot gnu.org
2015-09-10 15:08 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-09-10 7:29 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67502
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep 10 07:28:27 2015
New Revision: 227605
URL: https://gcc.gnu.org/viewcvs?rev=227605&root=gcc&view=rev
Log:
PR c/67502
* c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
into OMP_FOR_PRE_BODY rather than before the loop.
* c-c++-common/gomp/pr67502.c: New test.
Added:
trunk/gcc/testsuite/c-c++-common/gomp/pr67502.c
Modified:
trunk/gcc/c/ChangeLog
trunk/gcc/c/c-parser.c
trunk/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/67502] ICE with collapsed for simd loop inside of parallel
2015-09-08 16:06 [Bug c/67502] New: ICE with collapsed for simd loop inside of parallel jakub at gcc dot gnu.org
2015-09-08 16:07 ` [Bug c/67502] " jakub at gcc dot gnu.org
2015-09-10 7:29 ` jakub at gcc dot gnu.org
@ 2015-09-10 7:37 ` jakub at gcc dot gnu.org
2015-09-10 15:08 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-09-10 7:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67502
--- Comment #2 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Thu Sep 10 07:37:00 2015
New Revision: 227612
URL: https://gcc.gnu.org/viewcvs?rev=227612&root=gcc&view=rev
Log:
PR c/67502
* c-parser.c (c_parser_omp_for_loop): Emit DECL_EXPR stmts
into OMP_FOR_PRE_BODY rather than before the loop.
* c-c++-common/gomp/pr67502.c: New test.
Added:
branches/gcc-5-branch/gcc/testsuite/c-c++-common/gomp/pr67502.c
Modified:
branches/gcc-5-branch/gcc/c/ChangeLog
branches/gcc-5-branch/gcc/c/c-parser.c
branches/gcc-5-branch/gcc/testsuite/ChangeLog
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug c/67502] ICE with collapsed for simd loop inside of parallel
2015-09-08 16:06 [Bug c/67502] New: ICE with collapsed for simd loop inside of parallel jakub at gcc dot gnu.org
` (2 preceding siblings ...)
2015-09-10 7:37 ` jakub at gcc dot gnu.org
@ 2015-09-10 15:08 ` jakub at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jakub at gcc dot gnu.org @ 2015-09-10 15:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67502
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution|--- |FIXED
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Fixed for 5.3+.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-09-10 15:08 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-08 16:06 [Bug c/67502] New: ICE with collapsed for simd loop inside of parallel jakub at gcc dot gnu.org
2015-09-08 16:07 ` [Bug c/67502] " jakub at gcc dot gnu.org
2015-09-10 7:29 ` jakub at gcc dot gnu.org
2015-09-10 7:37 ` jakub at gcc dot gnu.org
2015-09-10 15:08 ` 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).