This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: PR 6212
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: rth at redhat dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 7 May 02 14:02:46 EDT
- Subject: Re: PR 6212
Huh? The type of the accessed object is always visible. It's
TREE_TYPE (to).
Yes, but OFFSET is not to the accessed object: you have to add BITPOS
to get there.
Consider x[j].y. OFFSET is J*C and BITPOS is that for Y. TYPE here is
that of field Y, but OFFSET's alignment corresponds to the type of X[J].