This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran,patch] Another (possibly last?) LBOUND and UBOUND fix
- From: FX Coudert <fxcoudert at gmail dot com>
- To: FX Coudert <fxcoudert at gmail dot com>
- Cc: gfortran List <fortran at gcc dot gnu dot org>, gcc-patches patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 13 Nov 2006 21:56:35 +0100
- Subject: Re: [gfortran,patch] Another (possibly last?) LBOUND and UBOUND fix
- References: <72310BE6-BCAE-4181-A078-6E5EC929A730@gmail.com>
ping. This fixes two wrong-code PR, and it's not even too hard to
review :)
Attached patch fixes both the simplification and translation for
intrinsic UBOUND/LBOUND to get correct results in all cases I could
imagine. This clears completely PR 29489 & 29712. The logic behind
both patches is straightforward, and the only thing noteworthy is
that {L,U}BOUND simplification provided by this patch is a bit
pessimistic: there are a few more cases that we should be able to
simplify here, but for thoses cases the folding of code emitted
will take sufficient to not need runtime evaluation.
[...]
OK for mainline, 4.2 and 4.1?