Red Hat Bugzilla – Bug 1017708
asm goto miscompilation
Last modified: 2014-07-01 18:54:35 EDT
+++ This bug was initially created as a clone of Bug #1017704 +++
__attribute__((noinline, noclone)) int
foo (int a, int b)
asm volatile goto ("bts $1, %0; jc %l[lab]" : : "m" (b) : "memory" : lab);
if (foo (1, 0) != -3 || foo (0, 3) != 0 || foo (0, 0) != 0)
Jakub has a fix.
Fixed in devtoolset-2-gcc-4.8.2-1.el6.
Verified for devtoolset-2-gcc-4.8.2-1.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.