[PATCH][4.3] Deprecate -ftrapv
Robert Dewar
dewar@adacore.com
Sat Mar 1 22:31:00 GMT 2008
FX Coudert wrote:
>> 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.
But assuming the gcc is playing C-style games, it is probably a useful
thing to be able to verify that your code is free of such possibilities.
>
> FX
>
More information about the Gcc
mailing list