Fwd: [fortran,patch] Fix PR 34956 by not checking bounds of absent optional arguments

Jerry DeLisle jvdelisle@verizon.net
Sat Mar 8 17:23:00 GMT 2008


FX Coudert wrote:
> ping
> 
> Début du message réexpédié :
> 
>> De : FX Coudert <fxcoudert@gmail.com>
>> Date : 29 février 2008 22:14:28 GMT+00:00
>> À : Fortran List <fortran@gcc.gnu.org>, gcc patches 
>> <gcc-patches@gcc.gnu.org>
>> Objet : [fortran,patch] Fix PR 34956 by not checking bounds of absent 
>> optional arguments
>>
>> valgrind revealed the use of an uninitialized value in 
>> gfortran.dg/bounds_check_9.f90 compiled with -fbounds-check, due to 
>> bounds-checking being performend on an absent optional argument. There 
>> already was some code to check for optional args, but it only covered 
>> half of the bound-checking; IIRC, I was the one who wrote it in the 
>> first place, so I can only apologize for the bad initial fix.
>>
>> Bootstrapped and regtested on x86_64-linux, checked the tree dump and 
>> with valgrind that the issue was take care of. No testcase, because I 
>> can't seem to think of a way to get it to appear without valgrind (and 
>> the original testcase, of course, is already in the testsuite).
>>
>> OK to commit?


OK, thanks,

Jerry




More information about the Fortran mailing list