[PATCH][4.3] Deprecate -ftrapv

FX Coudert fxcoudert@gmail.com
Thu Mar 6 17:21:00 GMT 2008


>> In Fortran, integers are used to index arrays.  So if you want  
>> integer overflow checking, use -fbounds-check :-)
>
> I know there is a smiley here, but it seems to me that range checking
> is quite different from overflow checking.

I think what Toon was alluding to is that "real" Fortran programmers  
don't use integers except for array subscripts. Real life is floating- 
point based!

FX

-- 
François-Xavier Coudert
http://www.homepages.ucl.ac.uk/~uccafco/



More information about the Gcc mailing list