This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Fortran-dev, patch, committed] Minor fixes
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Mon, 12 Mar 2012 14:36:04 +0100
- Subject: Re: [Fortran-dev, patch, committed] Minor fixes
- References: <4F5DF102.7000100@net-b.de>
Dear Tobias,
> At some point, the extent calculation should be updated. Dumps like the
> following hurt, even if -O1 handles* them:
> (((D.1871->dim[0].lower_bound + D.1871->dim[0].extent) + -1) -
> D.1871->dim[0].lower_bound) + 1.
> [* maybe -fstrict-overflow and/or -fno-protect-parens is required in
> addition]
It was always the intention that the temporary API, which translates
the present representation to the new, should be replaced in places
where inefficient code is generated.
Well done - you are making good progress on the first stage of
changing the array descriptor. The next stage should be to get rid of
the inefficiencies such as that above. Then we can add all the new
fields out side of the dimension array.
Cheers
Paul