This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/22488] [4.1 Regression] push_fields_onto_fieldstack calculates offset incorrectly
- From: "mark at codesourcery dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Oct 2005 21:14:30 -0000
- Subject: [Bug tree-optimization/22488] [4.1 Regression] push_fields_onto_fieldstack calculates offset incorrectly
- References: <bug-22488-7559@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #43 from mark at codesourcery dot com 2005-10-04 21:14 -------
Subject: Re: [4.1 Regression] push_fields_onto_fieldstack
calculates offset incorrectly
jason at redhat dot com wrote:
> I was suggesting that instead of making the complete type and base type
> essentially copies of one another, that we make the complete type a
> wrapper around the base type. Proper alias semantics would fall out of
> that.
That's a nice idea. It would make life a little more complicated for
the front end; when seeing "a.b", you have to generate a double
COMPONENT_REF, because the internal representation is a.as_base.b. But,
that's a relatively localized change. We could actually do that at
gimplification/genericization-time too, I guess, which would be a nice
start towards proper lowering.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22488