This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: How can i get a ref from a this pointer ?
- From: Richard Henderson <rth at redhat dot com>
- To: James E Wilson <wilson at specifixinc dot com>
- Cc: Richard Buchmann <Richard dot Buchmann at lip6 dot fr>, gcc at gcc dot gnu dot org
- Date: Tue, 9 Nov 2004 19:19:24 -0800
- Subject: Re: How can i get a ref from a this pointer ?
- References: <20041105161410.GA13318@giovanni.lip6.fr> <41917FE4.7080501@specifixinc.com>
On Tue, Nov 09, 2004 at 06:41:40PM -0800, James E Wilson wrote:
> If you already have address arithmetic, then there is no easy way to get
> the COMPONENT_REF back. You probably have to do this manually. Look up
> the type info, and then look at the fields of the type to find out which
> one is at the index.
Indeed, there's a bit in one tree pass that attempts to do exactly
this, since we can get better alias info when doing so. This was
originally a hack to work around front end deficiencies.
r~