This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Array accesses
- From: Pop Sébastian <pop at gauvain dot u-strasbg dot fr>
- To: Diego Novillo <dnovillo at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 1 Aug 2002 00:37:35 +0200
- Subject: [tree-ssa] Array accesses
- References: <D716C79E-A379-11D6-9D1A-00039362EF82@apple.com> <1028034311.2966.12.camel@frodo>
On Tue, Jul 30, 2002 at 09:05:11AM -0400, Diego Novillo wrote:
> The problem is pointer arithmetic. The parser turns offsets into byte offsets.
Sorry for redundancies, but I'd like to reiterate my question:
is this a bug in the parser (that should be fixed)?
http://gcc.gnu.org/ml/gcc-patches/2002-06/msg01488.html
I think that it would be simpler to deal with exact array accessors
rather than pointer arithmetics in the optimizer.
A possible work-around solution is to work with byte offsets and expect the analyzer
to promote them into higher structures (arrays with array accessors) for those that
are candidates for optimization.
-- Sebastian