public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/26443] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867
@ 2006-02-23 14:32 reichelt at gcc dot gnu dot org
2006-02-24 13:04 ` [Bug tree-optimization/26443] " pinskia at gcc dot gnu dot org
` (9 more replies)
0 siblings, 10 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2006-02-23 14:32 UTC (permalink / raw)
To: gcc-bugs
The following C++ code crashes the mainline compiler on
x86_64-unknown-linux-gnu when compiled with -O3:
===================================
struct A
{
double x[4];
};
struct B
{
A y[2];
};
A foo(B *p)
{
for ( int i=0; i<4; ++i )
p->y[1].x[i]=0;
A a;
return a;
}
===================================
bug.cc: In function 'A foo(B*)':
bug.cc:11: internal compiler error: in add_virtual_operand, at
tree-ssa-operands.c:1867
Please submit a full bug report,
In fact "-O2" is enough to trigger the bug in 64bit mode, but
in conjunction with "-m32" I need "-O3".
The bug is probably related to PR 26338, but I can't test Ada
and trigger the bug mentioned in the first comment.
--
Summary: [4.2 regression] ICE in add_virtual_operand, at tree-
ssa-operands.c:1867
Product: gcc
Version: 4.2.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, monitored
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: reichelt at gcc dot gnu 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=26443
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/26443] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867
2006-02-23 14:32 [Bug tree-optimization/26443] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867 reichelt at gcc dot gnu dot org
@ 2006-02-24 13:04 ` pinskia at gcc dot gnu dot org
2006-02-24 13:06 ` pinskia at gcc dot gnu dot org
` (8 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 13:04 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dberlin at gcc dot gnu dot
| |org
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26443
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/26443] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867
2006-02-23 14:32 [Bug tree-optimization/26443] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867 reichelt at gcc dot gnu dot org
2006-02-24 13:04 ` [Bug tree-optimization/26443] " pinskia at gcc dot gnu dot org
@ 2006-02-24 13:06 ` pinskia at gcc dot gnu dot org
2006-02-24 13:11 ` pinskia at gcc dot gnu dot org
` (7 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 13:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2006-02-24 13:04 -------
Actually this happens after VRP2 which might mean it is a bug for Jeff Law to
look into.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26443
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/26443] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867
2006-02-23 14:32 [Bug tree-optimization/26443] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867 reichelt at gcc dot gnu dot org
2006-02-24 13:04 ` [Bug tree-optimization/26443] " pinskia at gcc dot gnu dot org
2006-02-24 13:06 ` pinskia at gcc dot gnu dot org
@ 2006-02-24 13:11 ` pinskia at gcc dot gnu dot org
2006-02-25 3:09 ` Daniel Berlin
2006-02-25 3:53 ` dberlin at dberlin dot org
` (6 subsequent siblings)
9 siblings, 1 reply; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-24 13:11 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-24 13:06 -------
Confirmed. Though VRP2 is just doing constant propagation at this point.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2006-02-24 13:06:09
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26443
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [Bug tree-optimization/26443] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867
2006-02-24 13:11 ` pinskia at gcc dot gnu dot org
@ 2006-02-25 3:09 ` Daniel Berlin
0 siblings, 0 replies; 12+ messages in thread
From: Daniel Berlin @ 2006-02-25 3:09 UTC (permalink / raw)
To: gcc-bugzilla; +Cc: gcc-bugs
On Fri, 2006-02-24 at 13:06 +0000, pinskia at gcc dot gnu dot org wrote:
>
> ------- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-24 13:06 -------
> Confirmed. Though VRP2 is just doing constant propagation at this point.
>
>
Last time i looked at a bug like this, it was actually some other pass
not rescanning operands when it should have.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/26443] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867
2006-02-23 14:32 [Bug tree-optimization/26443] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867 reichelt at gcc dot gnu dot org
` (2 preceding siblings ...)
2006-02-24 13:11 ` pinskia at gcc dot gnu dot org
@ 2006-02-25 3:53 ` dberlin at dberlin dot org
2006-02-25 17:27 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: dberlin at dberlin dot org @ 2006-02-25 3:53 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from dberlin at gcc dot gnu dot org 2006-02-25 03:09 -------
Subject: Re: [4.2 regression] ICE in
add_virtual_operand, at tree-ssa-operands.c:1867
On Fri, 2006-02-24 at 13:06 +0000, pinskia at gcc dot gnu dot org wrote:
>
> ------- Comment #2 from pinskia at gcc dot gnu dot org 2006-02-24 13:06 -------
> Confirmed. Though VRP2 is just doing constant propagation at this point.
>
>
Last time i looked at a bug like this, it was actually some other pass
not rescanning operands when it should have.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26443
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/26443] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867
2006-02-23 14:32 [Bug tree-optimization/26443] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867 reichelt at gcc dot gnu dot org
` (3 preceding siblings ...)
2006-02-25 3:53 ` dberlin at dberlin dot org
@ 2006-02-25 17:27 ` pinskia at gcc dot gnu dot org
2006-02-25 18:18 ` dberlin at dberlin dot org
` (4 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-02-25 17:27 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2006-02-25 17:08 -------
I am just going to mark this as blocking PR 26338.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
OtherBugsDependingO| |26338
nThis| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26443
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/26443] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867
2006-02-23 14:32 [Bug tree-optimization/26443] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867 reichelt at gcc dot gnu dot org
` (4 preceding siblings ...)
2006-02-25 17:27 ` pinskia at gcc dot gnu dot org
@ 2006-02-25 18:18 ` dberlin at dberlin dot org
2006-03-01 17:47 ` dberlin at gcc dot gnu dot org
` (3 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: dberlin at dberlin dot org @ 2006-02-25 18:18 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from dberlin at gcc dot gnu dot org 2006-02-25 18:16 -------
Subject: Bug 26443
This should fix the problem.
------- Comment #6 from dberlin at gcc dot gnu dot org 2006-02-25 18:16 -------
Created an attachment (id=10913)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10913&action=view)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26443
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/26443] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867
2006-02-23 14:32 [Bug tree-optimization/26443] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867 reichelt at gcc dot gnu dot org
` (5 preceding siblings ...)
2006-02-25 18:18 ` dberlin at dberlin dot org
@ 2006-03-01 17:47 ` dberlin at gcc dot gnu dot org
2006-03-01 17:48 ` dberlin at gcc dot gnu dot org
` (2 subsequent siblings)
9 siblings, 0 replies; 12+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2006-03-01 17:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #7 from dberlin at gcc dot gnu dot org 2006-03-01 17:46 -------
Subject: Bug 26443
Author: dberlin
Date: Wed Mar 1 17:46:56 2006
New Revision: 111608
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=111608
Log:
2006-03-01 Daniel Berlin <dberlin@dberlin.org>
Fix PR tree-optimization/26443
* tree-vrp.c (pass_vrp): Add TODO_update_tmt_usage
to todo and PROP_tmt_usage to properties_destroyed.
* tree-ssa-ccp.c (pass_ccp): Ditto.
(pass_store_ccp): Ditto.
* tree-ssa-dom.c (pass_dominator): Ditto.
Added:
trunk/gcc/testsuite/g++.dg/tree-ssa/pr26443.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-ccp.c
trunk/gcc/tree-ssa-dom.c
trunk/gcc/tree-vrp.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26443
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/26443] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867
2006-02-23 14:32 [Bug tree-optimization/26443] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867 reichelt at gcc dot gnu dot org
` (6 preceding siblings ...)
2006-03-01 17:47 ` dberlin at gcc dot gnu dot org
@ 2006-03-01 17:48 ` dberlin at gcc dot gnu dot org
2006-03-01 18:29 ` pinskia at gcc dot gnu dot org
2006-03-01 18:32 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 12+ messages in thread
From: dberlin at gcc dot gnu dot org @ 2006-03-01 17:48 UTC (permalink / raw)
To: gcc-bugs
------- Comment #8 from dberlin at gcc dot gnu dot org 2006-03-01 17:48 -------
Fixed
--
dberlin at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26443
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/26443] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867
2006-02-23 14:32 [Bug tree-optimization/26443] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867 reichelt at gcc dot gnu dot org
` (7 preceding siblings ...)
2006-03-01 17:48 ` dberlin at gcc dot gnu dot org
@ 2006-03-01 18:29 ` pinskia at gcc dot gnu dot org
2006-03-01 18:32 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-01 18:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #9 from pinskia at gcc dot gnu dot org 2006-03-01 18:29 -------
*** Bug 26476 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcb314 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26443
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug tree-optimization/26443] [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867
2006-02-23 14:32 [Bug tree-optimization/26443] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867 reichelt at gcc dot gnu dot org
` (8 preceding siblings ...)
2006-03-01 18:29 ` pinskia at gcc dot gnu dot org
@ 2006-03-01 18:32 ` pinskia at gcc dot gnu dot org
9 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-01 18:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #10 from pinskia at gcc dot gnu dot org 2006-03-01 18:32 -------
*** Bug 26444 has been marked as a duplicate of this bug. ***
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jv244 at cam dot ac dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26443
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2006-03-01 18:32 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-23 14:32 [Bug tree-optimization/26443] New: [4.2 regression] ICE in add_virtual_operand, at tree-ssa-operands.c:1867 reichelt at gcc dot gnu dot org
2006-02-24 13:04 ` [Bug tree-optimization/26443] " pinskia at gcc dot gnu dot org
2006-02-24 13:06 ` pinskia at gcc dot gnu dot org
2006-02-24 13:11 ` pinskia at gcc dot gnu dot org
2006-02-25 3:09 ` Daniel Berlin
2006-02-25 3:53 ` dberlin at dberlin dot org
2006-02-25 17:27 ` pinskia at gcc dot gnu dot org
2006-02-25 18:18 ` dberlin at dberlin dot org
2006-03-01 17:47 ` dberlin at gcc dot gnu dot org
2006-03-01 17:48 ` dberlin at gcc dot gnu dot org
2006-03-01 18:29 ` pinskia at gcc dot gnu dot org
2006-03-01 18:32 ` pinskia 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).