[PATCH][4.3] Deprecate -ftrapv
Toon Moene
toon@moene.indiv.nluug.nl
Thu Mar 6 15:09:00 GMT 2008
FX Coudert wrote:
[ Sorry, I'm way, way behind ]
>> C: integer overflow undefined, checking desirable at least for
>> debugging purposes.
>>
>> I think latest Fortran is same as C, can someone confirm?
>
> Yes, it is. Overflow undefined and no checking required; I think very
> few Fortran users actually use (or would use) checking on signed overflow.
In Fortran, integers are used to index arrays. So if you want integer
overflow checking, use -fbounds-check :-)
--
Toon Moene - e-mail: toon@moene.indiv.nluug.nl - phone: +31 346 214290
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
At home: http://moene.indiv.nluug.nl/~toon/
Progress of GNU Fortran: http://gcc.gnu.org/ml/gcc/2008-01/msg00009.html
More information about the Gcc
mailing list