This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Integer overflow in operator new
- From: Robert Dewar <dewar at adacore dot com>
- To: Bradley Lucier <lucier at math dot purdue dot edu>
- Cc: gcc mailing list <gcc at gcc dot gnu dot org>
- Date: Sun, 08 Apr 2007 19:27:34 -0400
- Subject: Re: Integer overflow in operator new
- References: <4008484F-3E62-49F4-8CC7-742BEC149D2F@math.purdue.edu>
Bradley Lucier wrote:
Robert Dewar wrote:
I have always been told that -ftrapv is nowhere near fully working or
reliable (I think Eric is the source of that advice).
Is this just a rumor, or are there data that backs this up. (That -
fwrapv doesn't work, not that Dewar was always told that it doesn't
work.)
Well there are a couple of bugs filed, but the real issue is whether
there really exists experience of routinely building large scale
applications with this switch, and I am under the impression the
answer is no, but of course I could be wrong. For Ada, the desire
would be to use this as the default on all targets for all
applications, which represents pretty strenuous usage!