------- Comment #5 from socketpair at gmail dot com  2010-08-24 03:35 -------
> There is nothing the compiler can do really.
Why ?
I compared assembler listings with likely() swapped with unlikely(). As I
suggest, it helps to choose between je and jne in each case, and other
circumstances are not taken into account. So on this, I conclude that this
optimization is made near the end of compilation. Consequently, the bug in it.


-- 

socketpair at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |UNCONFIRMED
         Resolution|INVALID                     |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45340

Reply via email to