This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Proposed location for variable sizes etc in ARRAY_REF and COMPONENT_REF
- From: Richard Henderson <rth at redhat dot com>
- To: Richard Kenner <kenner at vlsi1 dot ultra dot nyu dot edu>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 22 Jun 2004 18:58:34 -0700
- Subject: Re: Proposed location for variable sizes etc in ARRAY_REF and COMPONENT_REF
- References: <10406230114.AA12849@vlsi1.ultra.nyu.edu>
On Tue, Jun 22, 2004 at 09:14:31PM -0400, Richard Kenner wrote:
> What about making an exp_ann and using it for those two tree types to
> hold the variable bound, offset, and element size, if needed?
No. They don't exist early enough. Nor are they terribly stable.
> I *really* don't like the idea of two tree codes ...
Why not? All the ugly stuff should be hidden behind the
accessors that you wrote. It's just a matter of putting
both codes in any switch statement (or whatever).
r~