This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [gfortran,patch] Fix multiple evaluation of index with bounds checking
- From: FX Coudert <fxcoudert at gmail dot com>
- To: "fortran at gcc dot gnu dot org List" <fortran at gcc dot gnu dot org>, gcc-patches List <gcc-patches at gcc dot gnu dot org>
- Date: Sun, 15 Jul 2007 01:01:49 +0100
- Subject: Re: [gfortran,patch] Fix multiple evaluation of index with bounds checking
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; b=CInD2DXLcCvJ+gvTaK/RIzeOOIOwX4NW4ZR6h7wX9oNdxcqSpPmIh/jIntd5B2AhrqsUYqvgByzk/PXZcSDunjit9OZMCOMHITGlL76taqeC3N4XR+WQMK4zFSiyC7vJ87aiFM10DV5d7AeLaxVUTm36xIKqMQPmIEdSqEORz8Y=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; b=Euz++Y+JHQMvuSLhQPSqb7d2TpWSrkoaT4GPp7GH/DR2NJY1Eh+izkSsR2XFk/HWiWy2l7sG2C5w4Hg3NMAaRnav7JuJA3rP6c+atwSMtzHZiI4e/KgOoxFPpf3tLLuEtrKvHoOm9Xxm15uHu8VSo1i8WUMS8Kf66QSK1izWebA=
- References: <CDD7201E-4DFA-43DB-AF4F-E61D64643A0D@gmail.com> <de8d50360707121107u4d142643iaa5525fa3398f952@mail.gmail.com>
Acting on Andrew's suggestion, I changed the patch to use the
save_expr() function. And since it's a simple one-line patch, I
finally decided to go ahead and commit it as rev. 126647, after a
final regtesting with -fbounds-check on x86_64-linux.
FX
Attachment:
foo.diff
Description: Binary data