upstream comment:

The inline-asm is totally incorrect here is the corrected version of the
function (note res should be set):
static bool atomic_test_and_reset_bit(unsigned long *v,unsigned long bit) {
  bool res = 0;

  __asm__ __volatile__( "btr %2,%1\n"
                        "adc $0,%0\n"
                        :"+r"(res): "m"(*v)
                        ,"r"(bit), "r"(0): "flags") ;
  return res ? 1 : 0;
}


** Changed in: gcc-4.4 (Ubuntu)
       Status: Confirmed => Invalid

-- 
[PR42553] Compiled program misbehaves
https://bugs.launchpad.net/bugs/434527
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to