This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [tree-ssa] PATCH to expose calculation of VLA ARRAY_REFs
- From: Pop Sébastian <pop at gauvain dot u-strasbg dot fr>
- To: law at redhat dot com
- Cc: Diego Novillo <dnovillo at redhat dot com>, Jason Merrill <jason at redhat dot com>,"gcc-patches at gcc dot gnu dot org" <gcc-patches at gcc dot gnu dot org>
- Date: Fri, 7 Mar 2003 16:49:34 +0100
- Subject: Re: [tree-ssa] PATCH to expose calculation of VLA ARRAY_REFs
- References: <1046904982.1392.33.camel@shadowfax> <200303071506.h27F6Do2003402@speedy.slc.redhat.com>
On Fri, Mar 07, 2003 at 08:06:13AM -0700, law at redhat dot com wrote:
> That's also my impression from talking with the SGI folks -- my recollection
> was that if you end up having to reconstruct the array references from
> pointer arithmetic, then you've already lost.
>
You've lost all the information about the original dimensions, right,
but the compiler could propose new array dimensions from the analysis of
access functions. I think that this could lead to a more systematic handling
of memory accesses. Again, these are just my thoughts, and I am ready to
consider all the alternatives.
Sebastian