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: Florian Weimer
Subject: Re: GCC optimizes integer overflow: bug or feature?
Date: Tue, 19 Dec 2006 12:28:46 +0100

* Paolo Bonzini:

> Interesting read.  I agree with the proposed fix; however, note that
> GCC does not make the result of overflowing signed left-shifts
> undefined, exactly because in this case the overflow is relied upon by
> too many existing programs

Is this documented somewhere?  Without documentation, it could also be
an oversight (lack of optimization) from a programmer perspective.




reply via email to

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