public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/25989] New: gomp ICE with -O2 and schedule(guided)
@ 2006-01-27 7:13 perrin at msli dot com
2006-01-27 7:18 ` [Bug c/25989] " perrin at msli dot com
` (11 more replies)
0 siblings, 12 replies; 13+ messages in thread
From: perrin at msli dot com @ 2006-01-27 7:13 UTC (permalink / raw)
To: gcc-bugs
/home/perrin/gcc_HEAD/INSTALL/110282/bin/gcc -Wall -std=c99 -v --save-temps -O2
-fopenmp -m64 -o test_gomp_2 test_gomp_2.c
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: /home/perrin/gcc_HEAD/gcc/configure
--prefix=/home/perrin/gcc_HEAD/INSTALL/110282/ --enable-threads=posix
--enable-languages=c,c++,fortran
Thread model: posix
gcc version 4.2.0 20060126 (experimental)
/home/perrin/gcc_HEAD/INSTALL/110282/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.0/cc1
-E -quiet -v -iprefix
/home/perrin/gcc_HEAD/INSTALL/110282/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.0/
-D_REENTRANT test_gomp_2.c -m64 -mtune=generic -std=c99 -Wall -fopenmp -O2
-fpch-preprocess -o test_gomp_2.i
ignoring nonexistent directory
"/home/perrin/gcc_HEAD/INSTALL/110282/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.0/../../../../x86_64-unknown-linux-gnu/include"
ignoring duplicate directory
"/home/perrin/gcc_HEAD/INSTALL/110282//lib/gcc/x86_64-unknown-linux-gnu/4.2.0/include"
ignoring nonexistent directory
"/home/perrin/gcc_HEAD/INSTALL/110282//lib/gcc/x86_64-unknown-linux-gnu/4.2.0/../../../../x86_64-unknown-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
/home/perrin/gcc_HEAD/INSTALL/110282/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.0/include
/usr/local/include
/home/perrin/gcc_HEAD/INSTALL/110282//include
/usr/include
End of search list.
/home/perrin/gcc_HEAD/INSTALL/110282/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.2.0/cc1
-fpreprocessed test_gomp_2.i -quiet -dumpbase test_gomp_2.c -m64 -mtune=generic
-auxbase test_gomp_2 -O2 -Wall -std=c99 -version -fopenmp -o test_gomp_2.s
GNU C version 4.2.0 20060126 (experimental) (x86_64-unknown-linux-gnu)
compiled by GNU C version 4.2.0 20060126 (experimental).
GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096
Compiler executable checksum: bafa485bbf5b021c2e63fce173a125c4
test_gomp_2.c: In function 'main.omp_fn.0':
test_gomp_2.c:10: error: invalid operand to unary operator
.istart0.2D.1817
test_gomp_2.c:10: error: invalid operand to unary operator
.iend0.3D.1818
test_gomp_2.c:10: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [test_gomp] Error 1
int main(void) {
int ii,jj;
float a=1.0, b;
#pragma omp parallel for schedule(guided,1) private(jj)
for ( ii = 1 ; ii <= 9 ; ii++ ) {
for ( jj = 1 ; jj <= 9 ; jj++ ) {
a = b;
}
}
}
--
Summary: gomp ICE with -O2 and schedule(guided)
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: perrin at msli dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug c/25989] gomp ICE with -O2 and schedule(guided)
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
@ 2006-01-27 7:18 ` perrin at msli dot com
2006-01-27 12:50 ` [Bug middle-end/25989] " pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: perrin at msli dot com @ 2006-01-27 7:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from perrin at msli dot com 2006-01-27 07:18 -------
Created an attachment (id=10739)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10739&action=view)
code fails when compiled with -O2 -fopenmp
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/25989] gomp ICE with -O2 and schedule(guided)
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
2006-01-27 7:18 ` [Bug c/25989] " perrin at msli dot com
@ 2006-01-27 12:50 ` pinskia at gcc dot gnu dot org
2006-03-13 17:15 ` jakub at gcc dot gnu dot org
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-27 12:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-01-27 12:50 -------
Confirmed, This is obvious invalid gimple:
D.1940 = __builtin_GOMP_loop_guided_next (&.istart0.2, &.iend0.3);
if (D.1940) goto <L3>; else goto <L6>;
<L6>:;
return;
<L3>:;
ii = (int) .istart0.2;
D.1938 = (int) .iend0.3;
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Component|c |middle-end
Ever Confirmed|0 |1
Keywords| |openmp
Last reconfirmed|0000-00-00 00:00:00 |2006-01-27 12:50:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/25989] gomp ICE with -O2 and schedule(guided)
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
2006-01-27 7:18 ` [Bug c/25989] " perrin at msli dot com
2006-01-27 12:50 ` [Bug middle-end/25989] " pinskia at gcc dot gnu dot org
@ 2006-03-13 17:15 ` jakub at gcc dot gnu dot org
2006-03-13 19:36 ` jakub at gcc dot gnu dot org
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-03-13 17:15 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jakub at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2006-01-27 12:50:51 |2006-03-13 17:15:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/25989] gomp ICE with -O2 and schedule(guided)
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
` (2 preceding siblings ...)
2006-03-13 17:15 ` jakub at gcc dot gnu dot org
@ 2006-03-13 19:36 ` jakub at gcc dot gnu dot org
2006-03-13 21:44 ` jakub at gcc dot gnu dot org
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-03-13 19:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jakub at gcc dot gnu dot org 2006-03-13 19:36 -------
Subject: Bug 25989
Author: jakub
Date: Mon Mar 13 19:36:19 2006
New Revision: 112023
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=112023
Log:
PR middle-end/25989
* omp-low.c (expand_omp_for_generic): Mark istart0
and iend0 as addressable.
* gcc.dg/gomp/pr25989.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/gomp/pr25989.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/omp-low.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/25989] gomp ICE with -O2 and schedule(guided)
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
` (3 preceding siblings ...)
2006-03-13 19:36 ` jakub at gcc dot gnu dot org
@ 2006-03-13 21:44 ` jakub at gcc dot gnu dot org
2006-03-14 1:28 ` pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-03-13 21:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jakub at gcc dot gnu dot org 2006-03-13 21:44 -------
Fixed on the trunk.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/25989] gomp ICE with -O2 and schedule(guided)
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
` (4 preceding siblings ...)
2006-03-13 21:44 ` jakub at gcc dot gnu dot org
@ 2006-03-14 1:28 ` pinskia at gcc dot gnu dot org
2006-04-17 12:17 ` reichelt at gcc dot gnu dot org
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-14 1:28 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/25989] gomp ICE with -O2 and schedule(guided)
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
` (5 preceding siblings ...)
2006-03-14 1:28 ` pinskia at gcc dot gnu dot org
@ 2006-04-17 12:17 ` reichelt at gcc dot gnu dot org
2006-04-18 10:59 ` jakub at gcc dot gnu dot org
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-04-17 12:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from reichelt at gcc dot gnu dot org 2006-04-17 12:17 -------
The testcase fails again (with a segfault):
FAIL: gcc.dg/gomp/pr25989.c (test for excess errors)
(from http://gcc.gnu.org/ml/gcc-testresults/2006-04/msg00920.html)
This is probably due to your fix from PR26823, Jakub.
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/25989] gomp ICE with -O2 and schedule(guided)
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
` (6 preceding siblings ...)
2006-04-17 12:17 ` reichelt at gcc dot gnu dot org
@ 2006-04-18 10:59 ` jakub at gcc dot gnu dot org
2006-04-20 3:05 ` amodra at bigpond dot net dot au
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-04-18 10:59 UTC (permalink / raw)
To: gcc-bugs
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2006-
| |04/msg00658.html
Status|REOPENED |ASSIGNED
Last reconfirmed|2006-03-13 17:15:39 |2006-04-18 10:59:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/25989] gomp ICE with -O2 and schedule(guided)
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
` (7 preceding siblings ...)
2006-04-18 10:59 ` jakub at gcc dot gnu dot org
@ 2006-04-20 3:05 ` amodra at bigpond dot net dot au
2006-04-20 23:12 ` danglin at gcc dot gnu dot org
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: amodra at bigpond dot net dot au @ 2006-04-20 3:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from amodra at bigpond dot net dot au 2006-04-20 03:04 -------
Ditto on powerpc-linux, due to NULL for_stmt.
#0 extract_omp_for_data (for_stmt=0x0, fd=0xffa80d78)
at /src/gcc-current/gcc/omp-low.c:157
#1 0x10106a10 in expand_parallel_call (region=0x10792098, bb=0x40104d20,
entry_stmt=0x400f4f90, ws_args=0x40102f00)
at /src/gcc-current/gcc/omp-low.c:2038
#2 0x1010a4e8 in expand_omp (region=0x10792098)
at /src/gcc-current/gcc/omp-low.c:2392
#3 0x1010b224 in execute_expand_omp () at /src/gcc-current/gcc/omp-low.c:3332
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/25989] gomp ICE with -O2 and schedule(guided)
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
` (8 preceding siblings ...)
2006-04-20 3:05 ` amodra at bigpond dot net dot au
@ 2006-04-20 23:12 ` danglin at gcc dot gnu dot org
2006-04-26 8:21 ` jakub at gcc dot gnu dot org
2006-04-26 8:28 ` jakub at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: danglin at gcc dot gnu dot org @ 2006-04-20 23:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from danglin at gcc dot gnu dot org 2006-04-20 23:12 -------
Ditto on hppa-unknown-linux-gnu.
--
danglin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |danglin at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/25989] gomp ICE with -O2 and schedule(guided)
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
` (9 preceding siblings ...)
2006-04-20 23:12 ` danglin at gcc dot gnu dot org
@ 2006-04-26 8:21 ` jakub at gcc dot gnu dot org
2006-04-26 8:28 ` jakub at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-04-26 8:21 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from jakub at gcc dot gnu dot org 2006-04-26 08:21 -------
Subject: Bug 25989
Author: jakub
Date: Wed Apr 26 08:20:57 2006
New Revision: 113268
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=113268
Log:
PR middle-end/25989
* tree-flow.h (struct omp_region): Add sched_kind.
* omp-low.c (expand_parallel_call): Use region->inner->sched_kind
instead of extracting omp for data.
(expand_omp_for): Save extracted sched_kind.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/omp-low.c
trunk/gcc/tree-flow.h
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Bug middle-end/25989] gomp ICE with -O2 and schedule(guided)
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
` (10 preceding siblings ...)
2006-04-26 8:21 ` jakub at gcc dot gnu dot org
@ 2006-04-26 8:28 ` jakub at gcc dot gnu dot org
11 siblings, 0 replies; 13+ messages in thread
From: jakub at gcc dot gnu dot org @ 2006-04-26 8:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from jakub at gcc dot gnu dot org 2006-04-26 08:28 -------
Fixed in SVN.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25989
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2006-04-26 8:28 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-27 7:13 [Bug c/25989] New: gomp ICE with -O2 and schedule(guided) perrin at msli dot com
2006-01-27 7:18 ` [Bug c/25989] " perrin at msli dot com
2006-01-27 12:50 ` [Bug middle-end/25989] " pinskia at gcc dot gnu dot org
2006-03-13 17:15 ` jakub at gcc dot gnu dot org
2006-03-13 19:36 ` jakub at gcc dot gnu dot org
2006-03-13 21:44 ` jakub at gcc dot gnu dot org
2006-03-14 1:28 ` pinskia at gcc dot gnu dot org
2006-04-17 12:17 ` reichelt at gcc dot gnu dot org
2006-04-18 10:59 ` jakub at gcc dot gnu dot org
2006-04-20 3:05 ` amodra at bigpond dot net dot au
2006-04-20 23:12 ` danglin at gcc dot gnu dot org
2006-04-26 8:21 ` jakub at gcc dot gnu dot org
2006-04-26 8:28 ` jakub at gcc dot gnu dot 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).