public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/46193] New: ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops
@ 2010-10-26 23:22 zsojka at seznam dot cz
2010-10-30 21:15 ` [Bug tree-optimization/46193] " ubizjak at gmail dot com
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: zsojka at seznam dot cz @ 2010-10-26 23:22 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46193
Summary: ICE: in omp_reduction_init, at omp-low.c:2212 with
-ftree-parallelize-loops
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned@gcc.gnu.org
ReportedBy: zsojka@seznam.cz
Created attachment 22167
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22167
reduced testcase (from gcc.dg/torture/pr45869.c)
Compiler output:
$ gcc -O -ftree-parallelize-loops=2 pr46193.c
pr46193.c: In function 'foo':
pr46193.c:1:7: internal compiler error: in omp_reduction_init, at
omp-low.c:2212
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r165915 - crash
4.5 r165781 - crash
4.4 r165754 - crash
4.4 r149995 - crash
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/46193] ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops
2010-10-26 23:22 [Bug tree-optimization/46193] New: ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops zsojka at seznam dot cz
@ 2010-10-30 21:15 ` ubizjak at gmail dot com
2010-10-30 21:18 ` ubizjak at gmail dot com
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ubizjak at gmail dot com @ 2010-10-30 21:15 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46193
Uros Bizjak <ubizjak at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2010.10.30 21:15:40
Ever Confirmed|0 |1
--- Comment #1 from Uros Bizjak <ubizjak at gmail dot com> 2010-10-30 21:15:40 UTC ---
Confirmed with 4.6.0, backtrace:
(gdb) bt
#0 fancy_abort (file=0xd11c58 "../../gcc-svn/trunk/gcc/omp-low.c", line=2212,
function=0xd138e0 "omp_reduction_init")
at ../../gcc-svn/trunk/gcc/diagnostic.c:880
#1 0x0000000000708873 in omp_reduction_init (clause=<value optimized out>,
type=0x7ffff2054930) at ../../gcc-svn/trunk/gcc/omp-low.c:2212
#2 0x000000000082a13a in initialize_reductions (slot=<value optimized out>,
data=0x7ffff2036b28) at ../../gcc-svn/trunk/gcc/tree-parloops.c:415
#3 0x0000000000c9c1d8 in htab_traverse_noresize (htab=<value optimized out>,
callback=0x82a070 <initialize_reductions>, info=0x7ffff2036b28)
at ../../gcc-svn/trunk/libiberty/hashtab.c:784
#4 0x000000000082c09e in gen_parallel_loop (loop=<value optimized out>,
reduction_list=0x1389f00, n_threads=2, niter=<value optimized out>)
at ../../gcc-svn/trunk/gcc/tree-parloops.c:1640
#5 0x000000000082d58b in parallelize_loops ()
at ../../gcc-svn/trunk/gcc/tree-parloops.c:1976
#6 0x00000000008ae469 in tree_parallelize_loops ()
at ../../gcc-svn/trunk/gcc/tree-ssa-loop.c:589
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/46193] ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops
2010-10-26 23:22 [Bug tree-optimization/46193] New: ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops zsojka at seznam dot cz
2010-10-30 21:15 ` [Bug tree-optimization/46193] " ubizjak at gmail dot com
@ 2010-10-30 21:18 ` ubizjak at gmail dot com
2015-07-12 22:10 ` vries at gcc dot gnu.org
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: ubizjak at gmail dot com @ 2010-10-30 21:18 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46193
--- Comment #2 from Uros Bizjak <ubizjak at gmail dot com> 2010-10-30 21:18:05 UTC ---
We have pointer type that triggers assert:
#1 0x0000000000708873 in omp_reduction_init (clause=<value optimized out>,
type=0x7ffff2054930) at ../../gcc-svn/trunk/gcc/omp-low.c:2212
2212 gcc_assert (INTEGRAL_TYPE_P (type));
(gdb) p debug_generic_expr (type)
char *
$1 = void
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/46193] ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops
2010-10-26 23:22 [Bug tree-optimization/46193] New: ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops zsojka at seznam dot cz
2010-10-30 21:15 ` [Bug tree-optimization/46193] " ubizjak at gmail dot com
2010-10-30 21:18 ` ubizjak at gmail dot com
@ 2015-07-12 22:10 ` vries at gcc dot gnu.org
2015-07-13 11:04 ` vries at gcc dot gnu.org
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2015-07-12 22:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46193
vries at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vries at gcc dot gnu.org
--- Comment #3 from vries at gcc dot gnu.org ---
Created attachment 35962
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35962&action=edit
Tentative patch
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/46193] ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops
2010-10-26 23:22 [Bug tree-optimization/46193] New: ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops zsojka at seznam dot cz
` (2 preceding siblings ...)
2015-07-12 22:10 ` vries at gcc dot gnu.org
@ 2015-07-13 11:04 ` vries at gcc dot gnu.org
2015-07-24 11:10 ` vries at gcc dot gnu.org
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2015-07-13 11:04 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46193
vries at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |patch
--- Comment #4 from vries at gcc dot gnu.org ---
https://gcc.gnu.org/ml/gcc-patches/2015-07/msg01018.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/46193] ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops
2010-10-26 23:22 [Bug tree-optimization/46193] New: ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops zsojka at seznam dot cz
` (3 preceding siblings ...)
2015-07-13 11:04 ` vries at gcc dot gnu.org
@ 2015-07-24 11:10 ` vries at gcc dot gnu.org
2015-07-27 23:46 ` vries at gcc dot gnu.org
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2015-07-24 11:10 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46193
--- Comment #5 from vries at gcc dot gnu.org ---
pinged patch 2015-07-22:
https://gcc.gnu.org/ml/gcc-patches/2015-07/msg01883.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/46193] ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops
2010-10-26 23:22 [Bug tree-optimization/46193] New: ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops zsojka at seznam dot cz
` (4 preceding siblings ...)
2015-07-24 11:10 ` vries at gcc dot gnu.org
@ 2015-07-27 23:46 ` vries at gcc dot gnu.org
2015-08-24 15:11 ` vries at gcc dot gnu.org
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2015-07-27 23:46 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46193
--- Comment #6 from vries at gcc dot gnu.org ---
Author: vries
Date: Mon Jul 27 23:46:16 2015
New Revision: 226289
URL: https://gcc.gnu.org/viewcvs?rev=226289&root=gcc&view=rev
Log:
Handle mix/max pointer reductions in parloops
2015-07-28 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/46193
* omp-low.c (omp_reduction_init): Handle pointer type for min or max
clause.
* gcc.dg/autopar/pr46193.c: New test.
* testsuite/libgomp.c/pr46193.c: New test.
Added:
branches/gomp-4_0-branch/gcc/testsuite/gcc.dg/autopar/pr46193.c
branches/gomp-4_0-branch/libgomp/testsuite/libgomp.c/pr46193.c
Modified:
branches/gomp-4_0-branch/gcc/ChangeLog.gomp
branches/gomp-4_0-branch/gcc/omp-low.c
branches/gomp-4_0-branch/gcc/testsuite/ChangeLog.gomp
branches/gomp-4_0-branch/libgomp/ChangeLog.gomp
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/46193] ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops
2010-10-26 23:22 [Bug tree-optimization/46193] New: ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops zsojka at seznam dot cz
` (5 preceding siblings ...)
2015-07-27 23:46 ` vries at gcc dot gnu.org
@ 2015-08-24 15:11 ` vries at gcc dot gnu.org
2015-08-29 7:08 ` vries at gcc dot gnu.org
2015-08-29 7:22 ` vries at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2015-08-24 15:11 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46193
--- Comment #7 from vries at gcc dot gnu.org ---
ping^2: https://gcc.gnu.org/ml/gcc-patches/2015-08/msg01423.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/46193] ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops
2010-10-26 23:22 [Bug tree-optimization/46193] New: ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops zsojka at seznam dot cz
` (6 preceding siblings ...)
2015-08-24 15:11 ` vries at gcc dot gnu.org
@ 2015-08-29 7:08 ` vries at gcc dot gnu.org
2015-08-29 7:22 ` vries at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2015-08-29 7:08 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46193
--- Comment #8 from vries at gcc dot gnu.org ---
Author: vries
Date: Sat Aug 29 07:07:51 2015
New Revision: 227315
URL: https://gcc.gnu.org/viewcvs?rev=227315&root=gcc&view=rev
Log:
Handle mix/max pointer reductions in parloops
2015-08-29 Tom de Vries <tom@codesourcery.com>
PR tree-optimization/46193
* omp-low.c (omp_reduction_init): Handle pointer type for min or max
clause.
* gcc.dg/autopar/pr46193.c: New test.
* testsuite/libgomp.c/pr46193.c: New test.
Added:
trunk/gcc/testsuite/gcc.dg/autopar/pr46193.c
trunk/libgomp/testsuite/libgomp.c/pr46193.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/omp-low.c
trunk/gcc/testsuite/ChangeLog
trunk/libgomp/ChangeLog
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Bug tree-optimization/46193] ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops
2010-10-26 23:22 [Bug tree-optimization/46193] New: ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops zsojka at seznam dot cz
` (7 preceding siblings ...)
2015-08-29 7:08 ` vries at gcc dot gnu.org
@ 2015-08-29 7:22 ` vries at gcc dot gnu.org
8 siblings, 0 replies; 10+ messages in thread
From: vries at gcc dot gnu.org @ 2015-08-29 7:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46193
vries at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #9 from vries at gcc dot gnu.org ---
patch and test-case committed, marking resolved-fixed
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2015-08-29 7:22 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-26 23:22 [Bug tree-optimization/46193] New: ICE: in omp_reduction_init, at omp-low.c:2212 with -ftree-parallelize-loops zsojka at seznam dot cz
2010-10-30 21:15 ` [Bug tree-optimization/46193] " ubizjak at gmail dot com
2010-10-30 21:18 ` ubizjak at gmail dot com
2015-07-12 22:10 ` vries at gcc dot gnu.org
2015-07-13 11:04 ` vries at gcc dot gnu.org
2015-07-24 11:10 ` vries at gcc dot gnu.org
2015-07-27 23:46 ` vries at gcc dot gnu.org
2015-08-24 15:11 ` vries at gcc dot gnu.org
2015-08-29 7:08 ` vries at gcc dot gnu.org
2015-08-29 7:22 ` vries 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).