This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/36143] [4.4 Regression]: FAIL: g++.dg/tree-ssa/pr19637.C
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Dec 2008 15:20:19 -0000
- Subject: [Bug middle-end/36143] [4.4 Regression]: FAIL: g++.dg/tree-ssa/pr19637.C
- References: <bug-36143-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #12 from jakub at gcc dot gnu dot org 2008-12-03 15:20 -------
Created an attachment (id=16813)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16813&action=view)
gcc44-pr36143.patch
I've tried to implement what Richi suggested in #c6, unfortunately that didn't
fix the failure.
After forwprop1 foo_char and foo_void contain:
D.2279_5 = (struct Foo *) &i;
D.2279_5->i[0] ={v} 1;
D.2281_11 = i[0];
but the optimizers don't figure out that ((struct Foo *) &i)->i[0]
and i[0] is the same thing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36143