bug-gnulib
[Top][All Lists]
Advanced

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

Re: GCC optimizes integer overflow: bug or feature?


From: Gabriel Dos Reis
Subject: Re: GCC optimizes integer overflow: bug or feature?
Date: 19 Dec 2006 13:49:35 -0600

Paul Eggert <address@hidden> writes:

| "Joseph S. Myers" <address@hidden> writes:
| 
| > Encapsulate reliable overflow checks for the various
| > arithmetic operations and types in functions or macros in
| > gnulib (for long long multiply, in this case).
| 
| That might be the best approach in the long run, but it
| would take a lot of painstaking analysis work in GNU
| applications and libraries.  I doubt we have time to do that
| right now.  We do, however, have the time to take a simple
| approach that will work globally to preserve the traditional
| wrapped-overflow semantics of C.

I think I argued that approach not so long ago, unsuccessfully.
Good luck.

-- Gaby




reply via email to

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