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: "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: 3 Dec 2008 15:33:27 -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 #13 from rguenth at gcc dot gnu dot org 2008-12-03 15:33 -------
We should be able to go via a VIEW_CONVERT_EXPR when propagating (struct Foo *)
&i
into the LHS dereference D.2279_5->i[0]. That is, convert that to
VIEW_CONVERT_EXPR <struct Foo> (i)->i[0]
and further fold that by noting that the final access is at offset zero and
of the same type as i. (or more generally, for a final offset zero access
always strip all component-refs and fold to
VIEW_CONVERT_EXPR <final-access-type> (i)).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36143