This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33563] New: [4.3 Regression] DSE removes non-dead store
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Sep 2007 12:39:53 -0000
- Subject: [Bug tree-optimization/33563] New: [4.3 Regression] DSE removes non-dead store
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
For gcc.dg/torture
/* { dg-do run } */
/* { dg-options "--param max-aliased-vops=0" } */
struct T
{
int a, b;
} t, q;
int main (void)
{
struct T *p;
t.a = 1;
t.b = 2;
q = t;
t.a = 3;
if (q.a != 1)
__builtin_abort ();
return 0;
}
the logic behind tree-ssa-dse.c:get_use_of_stmt_lhs is wrong.
--
Summary: [4.3 Regression] DSE removes non-dead store
Product: gcc
Version: 4.3.0
Status: UNCONFIRMED
Keywords: wrong-code
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: rguenth at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33563