public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811
@ 2009-06-03 8:48 toon at moene dot org
2009-06-03 8:50 ` [Bug middle-end/40328] " toon at moene dot org
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: toon at moene dot org @ 2009-06-03 8:48 UTC (permalink / raw)
To: gcc-bugs
The attached Fortran source, when compiled with a recent version of the trunk,
gives the above ICE.
Compile options: -O3 -c.
--
Summary: internal compiler error: in set_ssa_val_to, at tree-
ssa-sccvn.c:1811
Product: gcc
Version: 4.5.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: middle-end
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: toon at moene dot org
GCC build triplet: x86_64-unknown-linux-gnu
GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40328] internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811
2009-06-03 8:48 [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811 toon at moene dot org
@ 2009-06-03 8:50 ` toon at moene dot org
2009-06-03 8:52 ` toon at moene dot org
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: toon at moene dot org @ 2009-06-03 8:50 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from toon at moene dot org 2009-06-03 08:50 -------
Created an attachment (id=17947)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17947&action=view)
Testcase
Attached the testcase.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40328] internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811
2009-06-03 8:48 [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811 toon at moene dot org
2009-06-03 8:50 ` [Bug middle-end/40328] " toon at moene dot org
@ 2009-06-03 8:52 ` toon at moene dot org
2009-06-03 11:25 ` rguenth at gcc dot gnu dot org
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: toon at moene dot org @ 2009-06-03 8:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from toon at moene dot org 2009-06-03 08:52 -------
The bug started to appear between revisions 147846 and 147982 of the trunk.
--
toon at moene dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2009-06-03 08:52:01
date| |
Summary| internal compiler error: in|internal compiler error: in
|set_ssa_val_to, at tree-ssa-|set_ssa_val_to, at tree-ssa-
|sccvn.c:1811 |sccvn.c:1811
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40328] internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811
2009-06-03 8:48 [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811 toon at moene dot org
2009-06-03 8:50 ` [Bug middle-end/40328] " toon at moene dot org
2009-06-03 8:52 ` toon at moene dot org
@ 2009-06-03 11:25 ` rguenth at gcc dot gnu dot org
2009-06-03 11:31 ` rguenth at gcc dot gnu dot org
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-03 11:25 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from rguenth at gcc dot gnu dot org 2009-06-03 11:25 -------
Mine. We fail to fold COMPLEX_EXPR <0, 0> to COMPLEX_CST.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40328] internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811
2009-06-03 8:48 [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811 toon at moene dot org
` (2 preceding siblings ...)
2009-06-03 11:25 ` rguenth at gcc dot gnu dot org
@ 2009-06-03 11:31 ` rguenth at gcc dot gnu dot org
2009-06-03 12:55 ` toon at moene dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-03 11:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from rguenth at gcc dot gnu dot org 2009-06-03 11:31 -------
I am testing the following:
Index: gcc/fold-const.c
===================================================================
--- gcc/fold-const.c (revision 148119)
+++ gcc/fold-const.c (working copy)
@@ -2643,9 +2643,10 @@ fold_convert (tree type, tree arg)
case POINTER_TYPE: case REFERENCE_TYPE:
case REAL_TYPE:
case FIXED_POINT_TYPE:
- return build2 (COMPLEX_EXPR, type,
- fold_convert (TREE_TYPE (type), arg),
- fold_convert (TREE_TYPE (type), integer_zero_node));
+ return fold_build2 (COMPLEX_EXPR, type,
+ fold_convert (TREE_TYPE (type), arg),
+ fold_convert (TREE_TYPE (type),
+ integer_zero_node));
case COMPLEX_TYPE:
{
tree rpart, ipart;
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |rguenth at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2009-06-03 08:52:01 |2009-06-03 11:31:39
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40328] internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811
2009-06-03 8:48 [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811 toon at moene dot org
` (3 preceding siblings ...)
2009-06-03 11:31 ` rguenth at gcc dot gnu dot org
@ 2009-06-03 12:55 ` toon at moene dot org
2009-06-03 14:39 ` [Bug middle-end/40328] [4.5 Regression] " pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: toon at moene dot org @ 2009-06-03 12:55 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from toon at moene dot org 2009-06-03 12:55 -------
It works for the testcase with your change (over revision 148127).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40328] [4.5 Regression] internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811
2009-06-03 8:48 [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811 toon at moene dot org
` (4 preceding siblings ...)
2009-06-03 12:55 ` toon at moene dot org
@ 2009-06-03 14:39 ` pinskia at gcc dot gnu dot org
2009-06-03 15:31 ` rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2009-06-03 14:39 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|internal compiler error: in |[4.5 Regression] internal
|set_ssa_val_to, at tree-ssa-|compiler error: in
|sccvn.c:1811 |set_ssa_val_to, at tree-ssa-
| |sccvn.c:1811
Target Milestone|--- |4.5.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40328] [4.5 Regression] internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811
2009-06-03 8:48 [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811 toon at moene dot org
` (5 preceding siblings ...)
2009-06-03 14:39 ` [Bug middle-end/40328] [4.5 Regression] " pinskia at gcc dot gnu dot org
@ 2009-06-03 15:31 ` rguenth at gcc dot gnu dot org
2009-06-03 15:45 ` rguenth at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-03 15:31 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2009-06-03 15:31 -------
Subject: Bug 40328
Author: rguenth
Date: Wed Jun 3 15:30:52 2009
New Revision: 148134
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148134
Log:
2009-06-03 Richard Guenther <rguenther@suse.de>
PR middle-end/40328
* fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
* gcc.dg/torture/pr40328.c: New testcase.
Added:
trunk/gcc/testsuite/gcc.dg/torture/pr40328.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/fold-const.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40328] [4.5 Regression] internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811
2009-06-03 8:48 [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811 toon at moene dot org
` (6 preceding siblings ...)
2009-06-03 15:31 ` rguenth at gcc dot gnu dot org
@ 2009-06-03 15:45 ` rguenth at gcc dot gnu dot org
2009-06-07 14:37 ` hjl at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-06-03 15:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from rguenth at gcc dot gnu dot org 2009-06-03 15:44 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40328] [4.5 Regression] internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811
2009-06-03 8:48 [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811 toon at moene dot org
` (7 preceding siblings ...)
2009-06-03 15:45 ` rguenth at gcc dot gnu dot org
@ 2009-06-07 14:37 ` hjl at gcc dot gnu dot org
2009-07-07 12:45 ` rguenth at gcc dot gnu dot org
2009-07-07 14:07 ` jakub at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: hjl at gcc dot gnu dot org @ 2009-06-07 14:37 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from hjl at gcc dot gnu dot org 2009-06-07 14:37 -------
Subject: Bug 40328
Author: hjl
Date: Sun Jun 7 14:36:55 2009
New Revision: 148248
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=148248
Log:
2009-06-07 H.J. Lu <hongjiu.lu@intel.com>
Backport from mainline:
2009-06-03 Richard Guenther <rguenther@suse.de>
PR middle-end/40328
* gcc.dg/torture/pr40328.c: New testcase.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/torture/pr40328.c
- copied unchanged from r148247,
trunk/gcc/testsuite/gcc.dg/torture/pr40328.c
Modified:
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40328] [4.5 Regression] internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811
2009-06-03 8:48 [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811 toon at moene dot org
` (8 preceding siblings ...)
2009-06-07 14:37 ` hjl at gcc dot gnu dot org
@ 2009-07-07 12:45 ` rguenth at gcc dot gnu dot org
2009-07-07 14:07 ` jakub at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2009-07-07 12:45 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from rguenth at gcc dot gnu dot org 2009-07-07 12:44 -------
Subject: Bug 40328
Author: rguenth
Date: Tue Jul 7 12:44:32 2009
New Revision: 149321
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149321
Log:
2009-07-07 Richard Guenther <rguenther@suse.de>
PR middle-end/40328
PR tree-optimization/40669
* tree-tailcall.c (adjust_accumulator_values): Properly
set DECL_GIMPLE_REG_P.
(adjust_return_value): Likewise.
(tree_optimize_tail_calls_1): Likewise.
* fold-const.c (fold_convert): Fold the built COMPLEX_EXPR.
* gcc.dg/pr40669.c: New testcase.
* gcc.dg/torture/pr40328.c: Likewise.
Added:
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr40669.c
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/torture/pr40328.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/fold-const.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
branches/gcc-4_3-branch/gcc/tree-tailcall.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug middle-end/40328] [4.5 Regression] internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811
2009-06-03 8:48 [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811 toon at moene dot org
` (9 preceding siblings ...)
2009-07-07 12:45 ` rguenth at gcc dot gnu dot org
@ 2009-07-07 14:07 ` jakub at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-07-07 14:07 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from jakub at gcc dot gnu dot org 2009-07-07 14:07 -------
Subject: Bug 40328
Author: jakub
Date: Tue Jul 7 14:07:19 2009
New Revision: 149329
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149329
Log:
PR middle-end/40669
* tree-tailcall.c (adjust_return_value_with_ops,
create_tailcall_accumulator): Set DECL_GIMPLE_REG_P on the temporary
if it has complex or vector type.
Backport from mainline:
2009-06-03 Richard Guenther <rguenther@suse.de>
PR middle-end/40328
* fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
* gcc.dg/pr40669.c: New test.
Added:
branches/gcc-4_4-branch/gcc/testsuite/gcc.dg/pr40669.c
Modified:
branches/gcc-4_4-branch/gcc/ChangeLog
branches/gcc-4_4-branch/gcc/fold-const.c
branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
branches/gcc-4_4-branch/gcc/tree-tailcall.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40328
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2009-07-07 14:07 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-03 8:48 [Bug middle-end/40328] New: internal compiler error: in set_ssa_val_to, at tree-ssa-sccvn.c:1811 toon at moene dot org
2009-06-03 8:50 ` [Bug middle-end/40328] " toon at moene dot org
2009-06-03 8:52 ` toon at moene dot org
2009-06-03 11:25 ` rguenth at gcc dot gnu dot org
2009-06-03 11:31 ` rguenth at gcc dot gnu dot org
2009-06-03 12:55 ` toon at moene dot org
2009-06-03 14:39 ` [Bug middle-end/40328] [4.5 Regression] " pinskia at gcc dot gnu dot org
2009-06-03 15:31 ` rguenth at gcc dot gnu dot org
2009-06-03 15:45 ` rguenth at gcc dot gnu dot org
2009-06-07 14:37 ` hjl at gcc dot gnu dot org
2009-07-07 12:45 ` rguenth at gcc dot gnu dot org
2009-07-07 14:07 ` 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).