This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH][4.3] Deprecate -ftrapv
- From: Robert Dewar <dewar at adacore dot com>
- To: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Cc: FX Coudert <fxcoudert at gmail dot com>, GCC Development <gcc at gcc dot gnu dot org>, ddaney at avtrex dot com, Richard Guenther <richard dot guenther at gmail dot com>, mark at codesourcery dot com
- Date: Thu, 06 Mar 2008 10:17:07 -0500
- Subject: Re: [PATCH][4.3] Deprecate -ftrapv
- References: <4B9FFA6D-CAA5-4A3C-A36A-CA462DE8AB42@gmail.com> <47D001ED.1090105@moene.indiv.nluug.nl>
Toon Moene wrote:
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.