This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32153] runtime integer overflow checking fails
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 May 2007 17:54:20 -0000
- Subject: [Bug fortran/32153] runtime integer overflow checking fails
- References: <bug-32153-11277@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2007-05-30 17:54 -------
-ftrapv only traps floating-point overflow - no integer overflows.
(This is not completely correct, as some systems seem to offer to send FPE also
for integer overflows, see e.g.
https://www.cisl.ucar.edu/docs/ibm/ref/fpe.html
For x86 (32/64) platforms, this does not seem to be directly supported by
hardware; in this case one would need to add manual checks, which are slow, cf.
e.g.
http://softwarecommunity.intel.com/isn/Community/en-US/forums/thread/30227217.aspx
.)
-> WONTFIX, unless you find a good method to trap integer overflows.
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |WONTFIX
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32153