public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/32090] New: ICE in forwprop with zero sized array
@ 2007-05-25 22:28 pinskia at gcc dot gnu dot org
2007-05-25 22:28 ` [Bug tree-optimization/32090] " pinskia at gcc dot gnu dot org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-25 22:28 UTC (permalink / raw)
To: gcc-bugs
C++ testcase:
struct JArray
{
int data[0];
};
int copyIntoByteArray (struct JArray *dest, int offset)
{
void *pdest = dest->data + offset;
}
------------- cut -------------------
backtrace:
#0 0x08d6a47c in integer_onep (expr=0x0) at
/home/apinski/src/gcc-fsf/bugfixes/gcc/gcc/tree.c:1311
#1 0x08b69fea in forward_propagate_addr_into_variable_array_index
(offset=0xb7c5c444, lhs=0xb7c5c4ac, def_rhs=0xb7cd7da0,
use_stmt=0xb7d2178c) at
/home/apinski/src/gcc-fsf/bugfixes/gcc/gcc/tree-ssa-forwprop.c:519
#2 0x08b6bcd0 in forward_propagate_addr_expr_1 (name=0xb7c5c3a8,
def_rhs=0xb7cd7da0, use_stmt=0xb7d2178c, single_use_p=1 '\001')
at /home/apinski/src/gcc-fsf/bugfixes/gcc/gcc/tree-ssa-forwprop.c:682
#3 0x08b6c1e3 in forward_propagate_addr_expr (name=0xb7c5c3a8, rhs=0xb7cd7da0)
at /home/apinski/src/gcc-fsf/bugfixes/gcc/gcc/tree-ssa-forwprop.c:750
#4 0x08b6ecbf in tree_ssa_forward_propagate_single_use_vars () at
/home/apinski/src/gcc-fsf/bugfixes/gcc/gcc/tree-ssa-forwprop.c:999
--
Summary: ICE in forwprop with zero sized array
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code, build
Severity: blocker
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32090
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/32090] ICE in forwprop with zero sized array
2007-05-25 22:28 [Bug tree-optimization/32090] New: ICE in forwprop with zero sized array pinskia at gcc dot gnu dot org
@ 2007-05-25 22:28 ` pinskia at gcc dot gnu dot org
2007-05-25 22:32 ` [Bug tree-optimization/32090] [4.3 Regression] " pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-25 22:28 UTC (permalink / raw)
To: gcc-bugs
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.3.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32090
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/32090] [4.3 Regression] ICE in forwprop with zero sized array
2007-05-25 22:28 [Bug tree-optimization/32090] New: ICE in forwprop with zero sized array pinskia at gcc dot gnu dot org
2007-05-25 22:28 ` [Bug tree-optimization/32090] " pinskia at gcc dot gnu dot org
@ 2007-05-25 22:32 ` pinskia at gcc dot gnu dot org
2007-05-25 23:38 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-25 22:32 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-05-25 22:32 -------
This is obviously caused by:
2007-05-25 Richard Guenther <rguenther@suse.de>
PR tree-optimization/31982
* tree-ssa-forwprop.c
(forward_propagate_addr_into_variable_array_index): Handle arrays
with element size one.
Note this causes a bootstrap failure once libjava's configure issue is fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|ICE in forwprop with zero |[4.3 Regression] ICE in
|sized array |forwprop with zero sized
| |array
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32090
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/32090] [4.3 Regression] ICE in forwprop with zero sized array
2007-05-25 22:28 [Bug tree-optimization/32090] New: ICE in forwprop with zero sized array pinskia at gcc dot gnu dot org
2007-05-25 22:28 ` [Bug tree-optimization/32090] " pinskia at gcc dot gnu dot org
2007-05-25 22:32 ` [Bug tree-optimization/32090] [4.3 Regression] " pinskia at gcc dot gnu dot org
@ 2007-05-25 23:38 ` pinskia at gcc dot gnu dot org
2007-05-26 3:29 ` pinskia at gcc dot gnu dot org
2007-05-26 3:30 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-25 23:38 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from pinskia at gcc dot gnu dot org 2007-05-25 23:38 -------
I have a fix.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2007-05-25 23:38:15
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32090
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/32090] [4.3 Regression] ICE in forwprop with zero sized array
2007-05-25 22:28 [Bug tree-optimization/32090] New: ICE in forwprop with zero sized array pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2007-05-25 23:38 ` pinskia at gcc dot gnu dot org
@ 2007-05-26 3:29 ` pinskia at gcc dot gnu dot org
2007-05-26 3:30 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-26 3:29 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2007-05-26 03:29 -------
Fixed.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Summary|[4.3 Regression] ICE in |[4.3 Regression] ICE in
|forwprop with arrays and |forwprop with zero sized
|cast to void* |array
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32090
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug tree-optimization/32090] [4.3 Regression] ICE in forwprop with zero sized array
2007-05-25 22:28 [Bug tree-optimization/32090] New: ICE in forwprop with zero sized array pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2007-05-26 3:29 ` pinskia at gcc dot gnu dot org
@ 2007-05-26 3:30 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2007-05-26 3:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2007-05-26 03:30 -------
Subject: Bug 32090
Author: pinskia
Date: Sat May 26 03:29:58 2007
New Revision: 125087
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=125087
Log:
2007-05-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR tree-opt/32090
* tree-ssa-forwprop.c
(forward_propagate_addr_into_variable_array_index): Remove
the lhs argument. Use the type of def_rhs instead of lhs.
(forward_propagate_addr_expr_1): Update use of
forward_propagate_addr_into_variable_array_index.
2007-05-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR tree-opt/32090
* g++.dg/opt/array2.C: New testcase.
Added:
trunk/gcc/testsuite/g++.dg/opt/array2.C
Modified:
trunk/gcc/ChangeLog
trunk/gcc/testsuite/ChangeLog
trunk/gcc/tree-ssa-forwprop.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32090
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-05-26 3:30 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-05-25 22:28 [Bug tree-optimization/32090] New: ICE in forwprop with zero sized array pinskia at gcc dot gnu dot org
2007-05-25 22:28 ` [Bug tree-optimization/32090] " pinskia at gcc dot gnu dot org
2007-05-25 22:32 ` [Bug tree-optimization/32090] [4.3 Regression] " pinskia at gcc dot gnu dot org
2007-05-25 23:38 ` pinskia at gcc dot gnu dot org
2007-05-26 3:29 ` pinskia at gcc dot gnu dot org
2007-05-26 3:30 ` 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).