How can i get a ref from a this pointer ?

Richard Henderson rth@redhat.com
Wed Nov 10 03:22:00 GMT 2004


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~



More information about the Gcc mailing list