This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Integer overflow in operator new


On 08 April 2007 13:58, Andreas Schwab wrote:

> "Dave Korn" <dave.korn@artimi.com> writes:
> 
>>   Wouldn't using -ftrapv do what we want?
> 
> -ftrapv only modifies signed arithmetic.  Unsigned arithmetic never traps.
> 
> Andreas.

  Meh, I'm an idiot.  Still, maybe we want to create a -futrapv
flag/attribute?

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]