This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [lno] [patch] vectorizer update - loop bound
On Mon, Jan 19, 2004 at 06:23:57PM +0200, Dorit Naishlos wrote:
> Shouldn't the array accesses be normalized to start from 0
> when the Fortran program is translated to the trees?
Certainly not that early, no.
> If not, can I query what was the source language and treat Fortran
> programs differently than C (e.g., consider accesses to index i as
> accesses to index (i-1) in case it's Fortran)?
Nothing fortran specific here. The bounds of the array are stored
in TYPE_DOMAIN. The base index is
TYPE_MIN_VALUE (TYPE_DOMAIN (array_type))
r~