public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/41305] New: ICE with -O3 -floop-interchange
@ 2009-09-08 9:16 jakub at gcc dot gnu dot org
2009-09-08 9:17 ` [Bug tree-optimization/41305] " jakub at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-09-08 9:16 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1079 bytes --]
The following testcase ICEs on x86_64-linux on branches/gcc-4_4-branch with -O3
-floop-interchange:
Unable to coalesce ssa_names 99 and 106 which are marked as MUST COALESCE.
xi$data_$size__99(ab) and xi$data_$size__106(ab)
/tmp/rh520785.ii: In function âvoid foo(int)â:
/tmp/rh520785.ii:321: internal compiler error: SSA corruption
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Couldn't reproduce this on the trunk, but that doesn't mean the bug isn't
latent there. Doesn't reproduce without -floop-interchange, so I assume it is
graphite which is at fault here.
--
Summary: ICE with -O3 -floop-interchange
Product: gcc
Version: 4.4.2
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jakub at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41305
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/41305] ICE with -O3 -floop-interchange
2009-09-08 9:16 [Bug tree-optimization/41305] New: ICE with -O3 -floop-interchange jakub at gcc dot gnu dot org
@ 2009-09-08 9:17 ` jakub at gcc dot gnu dot org
2009-10-15 16:38 ` spop at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-09-08 9:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from jakub at gcc dot gnu dot org 2009-09-08 09:16 -------
Created an attachment (id=18539)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18539&action=view)
rh520785.ii
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41305
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/41305] ICE with -O3 -floop-interchange
2009-09-08 9:16 [Bug tree-optimization/41305] New: ICE with -O3 -floop-interchange jakub at gcc dot gnu dot org
2009-09-08 9:17 ` [Bug tree-optimization/41305] " jakub at gcc dot gnu dot org
@ 2009-10-15 16:38 ` spop at gcc dot gnu dot org
2009-12-23 18:11 ` spop at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: spop at gcc dot gnu dot org @ 2009-10-15 16:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from spop at gcc dot gnu dot org 2009-10-15 16:38 -------
This is fixed in the graphite branch.
--
spop at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41305
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug tree-optimization/41305] ICE with -O3 -floop-interchange
2009-09-08 9:16 [Bug tree-optimization/41305] New: ICE with -O3 -floop-interchange jakub at gcc dot gnu dot org
2009-09-08 9:17 ` [Bug tree-optimization/41305] " jakub at gcc dot gnu dot org
2009-10-15 16:38 ` spop at gcc dot gnu dot org
@ 2009-12-23 18:11 ` spop at gcc dot gnu dot org
2009-12-23 18:15 ` [Bug c++/41305] Infinite recursion with g++ at -O0 spop at gcc dot gnu dot org
` (6 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: spop at gcc dot gnu dot org @ 2009-12-23 18:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from spop at gcc dot gnu dot org 2009-12-23 18:11 -------
The testcase fails without graphite at -O0, probably a problem in the C++
front-end:
stopping the execution randomly, I get the following backtraces:
#0 0x0000000000660ccc in structural_comptypes (t1=0x7f097e143690,
t2=0x7f097df37e70, strict=0) at ../../gcc/cp/typeck.c:1170
#1 0x00000000006631a7 in comptypes (t1=0x7f097e143690, t2=0x7f097df37e70,
strict=0) at ../../gcc/cp/typeck.c:1298
#2 0x000000000054e11f in template_args_equal (ot=0x7f097e143690,
nt=0x7f097df37e70) at ../../gcc/cp/pt.c:5924
#3 0x000000000054e38b in comp_template_args (oldargs=0x7f097e147fc8,
newargs=0x7f097df40398) at ../../gcc/cp/pt.c:5947
#4 0x000000000066190c in structural_comptypes (t1=0x7f097e14a000,
t2=0x7f097df3f7e0, strict=0) at ../../gcc/cp/typeck.c:1169
#5 0x00000000006631a7 in comptypes (t1=0x7f097e14a000, t2=0x7f097df3f7e0,
strict=0) at ../../gcc/cp/typeck.c:1298
#6 0x000000000054e11f in template_args_equal (ot=0x7f097e14a000,
nt=0x7f097df3f7e0) at ../../gcc/cp/pt.c:5924
#7 0x000000000054e38b in comp_template_args (oldargs=0x7f097e14cfa0,
newargs=0x7f097df47370) at ../../gcc/cp/pt.c:5947
#8 0x000000000066190c in structural_comptypes (t1=0x7f097e152930,
t2=0x7f097df49150, strict=0) at ../../gcc/cp/typeck.c:1169
#0 0x000000000054d873 in template_args_equal (ot=Cannot access memory at
address 0x7fffab5c5fb8) at ../../gcc/cp/pt.c:5881
#1 0x000000000054e38b in comp_template_args (oldargs=0x7f097ea9e5f0,
newargs=0x7f097e8b9528) at ../../gcc/cp/pt.c:5947
#2 0x000000000066190c in structural_comptypes (t1=0x7f097ea9fbd0,
t2=0x7f097e8baa80, strict=0) at ../../gcc/cp/typeck.c:1169
#3 0x00000000006631a7 in comptypes (t1=0x7f097ea9fbd0, t2=0x7f097e8baa80,
strict=0) at ../../gcc/cp/typeck.c:1298
#4 0x000000000054e11f in template_args_equal (ot=0x7f097ea9fbd0,
nt=0x7f097e8baa80) at ../../gcc/cp/pt.c:5924
#5 0x000000000054e38b in comp_template_args (oldargs=0x7f097e8a05c8,
newargs=0x7f097e8c1500) at ../../gcc/cp/pt.c:5947
#6 0x000000000066190c in structural_comptypes (t1=0x7f097e8a1540,
t2=0x7f097e8c33f0, strict=0) at ../../gcc/cp/typeck.c:1169
#7 0x00000000006631a7 in comptypes (t1=0x7f097e8a1540, t2=0x7f097e8c33f0,
strict=0) at ../../gcc/cp/typeck.c:1298
#8 0x000000000054e11f in template_args_equal (ot=0x7f097e8a1540,
nt=0x7f097e8c33f0) at ../../gcc/cp/pt.c:5924
This stops after one or two minutes, depending on stack ulimit. With
an older compiler, I get this time:
time g++-4.3 -O3 -c ~/gcc/graphite/gcc/testsuite/g++.dg/graphite/pr41305.C
real 0m0.103s
user 0m0.072s
sys 0m0.012s
--
spop at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|FIXED |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41305
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/41305] Infinite recursion with g++ at -O0
2009-09-08 9:16 [Bug tree-optimization/41305] New: ICE with -O3 -floop-interchange jakub at gcc dot gnu dot org
` (2 preceding siblings ...)
2009-12-23 18:11 ` spop at gcc dot gnu dot org
@ 2009-12-23 18:15 ` spop at gcc dot gnu dot org
2009-12-23 20:12 ` hjl dot tools at gmail dot com
` (5 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: spop at gcc dot gnu dot org @ 2009-12-23 18:15 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from spop at gcc dot gnu dot org 2009-12-23 18:15 -------
This used to work on 2009-10-15 on the graphite branch.
--
spop at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|tree-optimization |c++
Keywords|ice-on-valid-code |
Priority|P3 |P1
Summary|ICE with -O3 -floop- |Infinite recursion with g++
|interchange |at -O0
Version|4.4.2 |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41305
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/41305] Infinite recursion with g++ at -O0
2009-09-08 9:16 [Bug tree-optimization/41305] New: ICE with -O3 -floop-interchange jakub at gcc dot gnu dot org
` (4 preceding siblings ...)
2009-12-23 20:12 ` hjl dot tools at gmail dot com
@ 2009-12-23 20:12 ` hjl dot tools at gmail dot com
2009-12-24 14:07 ` jason at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-12-23 20:12 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from hjl dot tools at gmail dot com 2009-12-23 20:12 -------
It is caused by revision 153958:
http://gcc.gnu.org/ml/gcc-cvs/2009-11/msg00176.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41305
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/41305] Infinite recursion with g++ at -O0
2009-09-08 9:16 [Bug tree-optimization/41305] New: ICE with -O3 -floop-interchange jakub at gcc dot gnu dot org
` (3 preceding siblings ...)
2009-12-23 18:15 ` [Bug c++/41305] Infinite recursion with g++ at -O0 spop at gcc dot gnu dot org
@ 2009-12-23 20:12 ` hjl dot tools at gmail dot com
2009-12-23 20:12 ` hjl dot tools at gmail dot com
` (4 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: hjl dot tools at gmail dot com @ 2009-12-23 20:12 UTC (permalink / raw)
To: gcc-bugs
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-12-23 20:12:13
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41305
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/41305] Infinite recursion with g++ at -O0
2009-09-08 9:16 [Bug tree-optimization/41305] New: ICE with -O3 -floop-interchange jakub at gcc dot gnu dot org
` (5 preceding siblings ...)
2009-12-23 20:12 ` hjl dot tools at gmail dot com
@ 2009-12-24 14:07 ` jason at gcc dot gnu dot org
2009-12-24 21:03 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-12-24 14:07 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2009-12-23 20:12:13 |2009-12-24 14:07:04
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41305
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/41305] Infinite recursion with g++ at -O0
2009-09-08 9:16 [Bug tree-optimization/41305] New: ICE with -O3 -floop-interchange jakub at gcc dot gnu dot org
` (6 preceding siblings ...)
2009-12-24 14:07 ` jason at gcc dot gnu dot org
@ 2009-12-24 21:03 ` jason at gcc dot gnu dot org
2009-12-24 21:46 ` jason at gcc dot gnu dot org
2009-12-28 17:19 ` hjl at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-12-24 21:03 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from jason at gcc dot gnu dot org 2009-12-24 21:03 -------
Fixed.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41305
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/41305] Infinite recursion with g++ at -O0
2009-09-08 9:16 [Bug tree-optimization/41305] New: ICE with -O3 -floop-interchange jakub at gcc dot gnu dot org
` (7 preceding siblings ...)
2009-12-24 21:03 ` jason at gcc dot gnu dot org
@ 2009-12-24 21:46 ` jason at gcc dot gnu dot org
2009-12-28 17:19 ` hjl at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: jason at gcc dot gnu dot org @ 2009-12-24 21:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from jason at gcc dot gnu dot org 2009-12-24 21:46 -------
Subject: Bug 41305
Author: jason
Date: Thu Dec 24 21:46:14 2009
New Revision: 155461
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155461
Log:
PR c++/41305, DR 384
* name-lookup.c (arg_assoc_class): Split out arg_assoc_class_only
and arg_assoc_bases.
(friend_of_associated_class_p): Remove.
(arg_assoc_namespace): Don't call it.
(arg_assoc_template_arg): Use arg_assoc_class_only for member
template context.
(arg_assoc_type): Handle UNION_TYPE and ENUMERAL_TYPE properly.
* name-lookup.c (arg_assoc): Handle TEMPLATE_ID_EXPR properly.
Added:
trunk/gcc/testsuite/g++.dg/lookup/koenig10.C
trunk/gcc/testsuite/g++.dg/lookup/koenig11.C
trunk/gcc/testsuite/g++.dg/lookup/koenig12.C
trunk/gcc/testsuite/g++.dg/lookup/koenig9.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/name-lookup.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41305
^ permalink raw reply [flat|nested] 11+ messages in thread
* [Bug c++/41305] Infinite recursion with g++ at -O0
2009-09-08 9:16 [Bug tree-optimization/41305] New: ICE with -O3 -floop-interchange jakub at gcc dot gnu dot org
` (8 preceding siblings ...)
2009-12-24 21:46 ` jason at gcc dot gnu dot org
@ 2009-12-28 17:19 ` hjl at gcc dot gnu dot org
9 siblings, 0 replies; 11+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-12-28 17:19 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from hjl at gcc dot gnu dot org 2009-12-28 17:18 -------
Subject: Bug 41305
Author: hjl
Date: Mon Dec 28 17:18:22 2009
New Revision: 155491
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=155491
Log:
2009-12-28 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline:
2009-12-24 Jason Merrill <jason@redhat.com>
PR c++/41305
* g++.dg/lookup/koenig10.C: New test.
* g++.dg/lookup/koenig11.C: New test.
* g++.dg/lookup/koenig12.C: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/lookup/koenig10.C
- copied unchanged from r155489,
trunk/gcc/testsuite/g++.dg/lookup/koenig10.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/lookup/koenig11.C
- copied unchanged from r155489,
trunk/gcc/testsuite/g++.dg/lookup/koenig11.C
branches/gcc-4_4-branch/gcc/testsuite/g++.dg/lookup/koenig12.C
- copied unchanged from r155489,
trunk/gcc/testsuite/g++.dg/lookup/koenig12.C
Modified:
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41305
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2009-12-28 17:19 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-08 9:16 [Bug tree-optimization/41305] New: ICE with -O3 -floop-interchange jakub at gcc dot gnu dot org
2009-09-08 9:17 ` [Bug tree-optimization/41305] " jakub at gcc dot gnu dot org
2009-10-15 16:38 ` spop at gcc dot gnu dot org
2009-12-23 18:11 ` spop at gcc dot gnu dot org
2009-12-23 18:15 ` [Bug c++/41305] Infinite recursion with g++ at -O0 spop at gcc dot gnu dot org
2009-12-23 20:12 ` hjl dot tools at gmail dot com
2009-12-23 20:12 ` hjl dot tools at gmail dot com
2009-12-24 14:07 ` jason at gcc dot gnu dot org
2009-12-24 21:03 ` jason at gcc dot gnu dot org
2009-12-24 21:46 ` jason at gcc dot gnu dot org
2009-12-28 17:19 ` hjl 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).