emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: INT_ADD_OVERFLOW broken?


From: Paul Eggert
Subject: Re: INT_ADD_OVERFLOW broken?
Date: Sat, 21 Sep 2013 23:59:32 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.0

Daniel Colascione wrote:

> Is INT_ADD_OVERFLOW actually safe?

It's supposed to be, yes.

As I recall, -Wstrict-overflow and -Wtype-limits issue many false
alarms, for INT_ADD_OVERFLOW as well as for other things, so I don't
recommend their use when building GNU Emacs.  That's why
--enable-gcc-warnings doesn't enable these options.

It's possible that you've found a bug in INT_ADD_OVERFLOW;
to check that it'd be helpful to have a self-contained example
so that the problem can be reproduced and understood.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]