This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa]: GIMPLE lowering array references too early?
- From: Jason Merrill <jason at redhat dot com>
- To: Chris Lattner <sabre at nondot dot org>
- Cc: Daniel Berlin <dberlin at dberlin dot org>, gcc at gcc dot gnu dot org, <dnovillo at redhat dot com>
- Date: Tue, 29 Jul 2003 14:26:57 -0400
- Subject: Re: [tree-ssa]: GIMPLE lowering array references too early?
- References: <Pine.LNX.4.44.0307291246230.3531-100000@nondot.org>
Many places in the expander currently assume that the first operand of an
ARRAY_REF has ARRAY_TYPE. We would need to add support for operands of
POINTER_TYPE.
A simpler change would be to allow building ARRAY_REFs from INDIRECT_REFs
to arrays. AFAIK that would only involve a one-line change in each (C/C++)
front end.
Jason