* [Bug c/25990] gomp ICE with -fopenmp and -O2
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
@ 2006-01-27 7:35 ` perrin at msli dot com
2006-01-27 12:58 ` [Bug middle-end/25990] " pinskia at gcc dot gnu dot org
` (13 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: perrin at msli dot com @ 2006-01-27 7:35 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from perrin at msli dot com 2006-01-27 07:35 -------
Created an attachment (id=10740)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10740&action=view)
fails with -fopenmp and -O2
contains two
#pragama omp parallel for
loops
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp and -O2
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
2006-01-27 7:35 ` [Bug c/25990] " perrin at msli dot com
@ 2006-01-27 12:58 ` pinskia at gcc dot gnu dot org
2006-01-27 14:09 ` [Bug middle-end/25990] gomp ICE with -fopenmp pinskia at gcc dot gnu dot org
` (12 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-27 12:58 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-01-27 12:58 -------
This is a GC failure:
#0 ggc_set_mark (p=0xafafafafafafafaf) at
/home/pinskia/src/checkin/trunk/gcc/ggc-page.c:588
#1 0x0000000000620268 in gt_ggc_mx_basic_block_def (x_p=Variable "x_p" is not
available.
) at gtype-desc.c:462
#2 0x000000000062060f in gt_ggc_mx_VEC_basic_block_gc (x_p=Variable "x_p" is
not available.
) at gtype-desc.c:193
#3 0x0000000000620673 in gt_ggc_mx_control_flow_graph (x_p=Variable "x_p" is
not available.
) at gtype-desc.c:624
#4 0x000000000062072f in gt_ggc_mx_function (x_p=Variable "x_p" is not
available.
) at gtype-desc.c:639
#5 0x0000000000409622 in gt_ggc_mx_lang_tree_node (x_p=Variable "x_p" is not
available.
) at gt-c-decl.h:315
#6 0x0000000000619df7 in gt_ggc_mx_cgraph_node (x_p=Variable "x_p" is not
available.
) at gtype-desc.c:166
#7 0x0000000000619f16 in gt_ggc_m_P11cgraph_node4htab (x_p=Variable "x_p" is
not available.
) at gtype-desc.c:1694
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|c |middle-end
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
2006-01-27 7:35 ` [Bug c/25990] " perrin at msli dot com
2006-01-27 12:58 ` [Bug middle-end/25990] " pinskia at gcc dot gnu dot org
@ 2006-01-27 14:09 ` pinskia at gcc dot gnu dot org
2006-01-27 14:11 ` pinskia at gcc dot gnu dot org
` (11 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-27 14:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-01-27 14:09 -------
You can reproduce this with -std=c99 -fopenmp --param ggc-min-expand=0 --param
ggc-min-heapsize=0
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|gomp ICE with -fopenmp and -|gomp ICE with -fopenmp
|O2 |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
` (2 preceding siblings ...)
2006-01-27 14:09 ` [Bug middle-end/25990] gomp ICE with -fopenmp pinskia at gcc dot gnu dot org
@ 2006-01-27 14:11 ` pinskia at gcc dot gnu dot org
2006-01-27 14:22 ` pinskia at gcc dot gnu dot org
` (10 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-27 14:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-01-27 14:11 -------
Reducing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
` (3 preceding siblings ...)
2006-01-27 14:11 ` pinskia at gcc dot gnu dot org
@ 2006-01-27 14:22 ` pinskia at gcc dot gnu dot org
2006-01-27 15:18 ` reichelt at gcc dot gnu dot org
` (9 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-27 14:22 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from pinskia at gcc dot gnu dot org 2006-01-27 14:22 -------
Reduced testcase:
__strcspn_c2 (__const char *__s, int __reject1, int __reject2)
{
int m = 1,n = 1,s = 1;
int DD,EE,num_s;
int m_max = 99;
int n_max = 00;
for ( n = 1 ; n <= 99 ; n++ )
for ( m = 1 ; m <= 99 ; m++ )
for ( m = 1 ; m <= m_max ; m++)
for ( s = 1 ; s <= num_s ; s++)
{
int liter ;
#pragma omp parallel for private(m,liter,s)
for ( n = 1 ; n <= n_max ; n++) {}
}
}
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dnovillo at gcc dot gnu dot
| |org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-01-27 14:22:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
` (4 preceding siblings ...)
2006-01-27 14:22 ` pinskia at gcc dot gnu dot org
@ 2006-01-27 15:18 ` reichelt at gcc dot gnu dot org
2006-02-01 12:38 ` reichelt at gcc dot gnu dot org
` (8 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-01-27 15:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from reichelt at gcc dot gnu dot org 2006-01-27 15:18 -------
Even simpler testcase:
==============================================
void foo()
{
int i;
for ( i=0; i<1; i++ ) ;
for ( i=0; i<1; i++ ) ;
for ( i=0; i<1; i++ ) ;
for ( i=0; i<1; i++ ) ;
for ( i=0; i<1; i++ ) ;
#pragma omp parallel
;
}
==============================================
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
` (5 preceding siblings ...)
2006-01-27 15:18 ` reichelt at gcc dot gnu dot org
@ 2006-02-01 12:38 ` reichelt at gcc dot gnu dot org
2006-02-01 12:56 ` dnovillo at gcc dot gnu dot org
` (7 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-01 12:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from reichelt at gcc dot gnu dot org 2006-02-01 12:38 -------
Hi Diego,
did you have a look at this one?
This makes -fopenmp almost unusable for the C++ frontend.
PR 26032 is probably a duplicate of this one.
I stumbled over the bug independently, too.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
` (6 preceding siblings ...)
2006-02-01 12:38 ` reichelt at gcc dot gnu dot org
@ 2006-02-01 12:56 ` dnovillo at gcc dot gnu dot org
2006-02-01 14:28 ` tbptbp at gmail dot com
` (6 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2006-02-01 12:56 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from dnovillo at gcc dot gnu dot org 2006-02-01 12:56 -------
Mine.
--
dnovillo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |dnovillo at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2006-01-27 14:22:50 |2006-02-01 12:56:18
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
` (7 preceding siblings ...)
2006-02-01 12:56 ` dnovillo at gcc dot gnu dot org
@ 2006-02-01 14:28 ` tbptbp at gmail dot com
2006-02-01 16:05 ` dnovillo at gcc dot gnu dot org
` (5 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: tbptbp at gmail dot com @ 2006-02-01 14:28 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from tbptbp at gmail dot com 2006-02-01 14:28 -------
And you can add PR 25983 on top of it :)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
` (8 preceding siblings ...)
2006-02-01 14:28 ` tbptbp at gmail dot com
@ 2006-02-01 16:05 ` dnovillo at gcc dot gnu dot org
2006-02-01 16:19 ` reichelt at gcc dot gnu dot org
` (4 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2006-02-01 16:05 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from dnovillo at gcc dot gnu dot org 2006-02-01 16:05 -------
I can't reproduced this with trunk@110474 nor gomp@110467. Could you please
try again?
--
dnovillo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
` (9 preceding siblings ...)
2006-02-01 16:05 ` dnovillo at gcc dot gnu dot org
@ 2006-02-01 16:19 ` reichelt at gcc dot gnu dot org
2006-02-01 18:06 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-01 16:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #11 from reichelt at gcc dot gnu dot org 2006-02-01 16:19 -------
I still get a segfault for the testcase in comment #6.
This is revision 110467 on x86_64-unknown-linux-gnu.
Note, that this is with the C frontend:
gcc -fopenmp --param ggc-min-expand=0 --param ggc-min-heapsize=0 -c PR25990.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
` (10 preceding siblings ...)
2006-02-01 16:19 ` reichelt at gcc dot gnu dot org
@ 2006-02-01 18:06 ` pinskia at gcc dot gnu dot org
2006-02-01 22:36 ` dnovillo at gcc dot gnu dot org
` (2 subsequent siblings)
14 siblings, 0 replies; 16+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-01 18:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #12 from pinskia at gcc dot gnu dot org 2006-02-01 18:06 -------
I can still confirm it too.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|WAITING |NEW
Last reconfirmed|2006-02-01 12:56:18 |2006-02-01 18:06:32
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
` (11 preceding siblings ...)
2006-02-01 18:06 ` pinskia at gcc dot gnu dot org
@ 2006-02-01 22:36 ` dnovillo at gcc dot gnu dot org
2006-02-02 12:27 ` dnovillo at gcc dot gnu dot org
2006-02-02 12:37 ` dnovillo at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2006-02-01 22:36 UTC (permalink / raw)
To: gcc-bugs
------- Comment #13 from dnovillo at gcc dot gnu dot org 2006-02-01 22:36 -------
(In reply to comment #11)
> I still get a segfault for the testcase in comment #6.
> This is revision 110467 on x86_64-unknown-linux-gnu.
>
Ah, yes. I had failed to notice the failure is on x86_64. Sorry about that.
--
dnovillo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed|2006-02-01 18:06:32 |2006-02-01 22:36:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
` (12 preceding siblings ...)
2006-02-01 22:36 ` dnovillo at gcc dot gnu dot org
@ 2006-02-02 12:27 ` dnovillo at gcc dot gnu dot org
2006-02-02 12:37 ` dnovillo at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2006-02-02 12:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #14 from dnovillo at gcc dot gnu dot org 2006-02-02 12:27 -------
Subject: Bug 25990
Author: dnovillo
Date: Thu Feb 2 12:27:02 2006
New Revision: 110511
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=110511
Log:
PR 25990
* tree-cfg.c (move_block_to_fn): Clear out the basic block
array after growing it.
testsuite/
PR 25990
* gcc.dg/gomp/pr25990.c: New test.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-cfg.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread
* [Bug middle-end/25990] gomp ICE with -fopenmp
2006-01-27 7:33 [Bug c/25990] New: gomp ICE with -fopenmp and -O2 perrin at msli dot com
` (13 preceding siblings ...)
2006-02-02 12:27 ` dnovillo at gcc dot gnu dot org
@ 2006-02-02 12:37 ` dnovillo at gcc dot gnu dot org
14 siblings, 0 replies; 16+ messages in thread
From: dnovillo at gcc dot gnu dot org @ 2006-02-02 12:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #15 from dnovillo at gcc dot gnu dot org 2006-02-02 12:37 -------
Fixed. http://gcc.gnu.org/ml/gcc-patches/2006-02/msg00121.html
--
dnovillo at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25990
^ permalink raw reply [flat|nested] 16+ messages in thread