This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][4.3] Deprecate -ftrapv


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]