Commit 04df515a by Marc Espie Committed by Marc Espie

atomicity.h (__exchange_and_add): Fix inline assembly for old assemblers.

	* config/cpu/m68k/bits/atomicity.h(__exchange_and_add):  Fix inline
	assembly for old assemblers.

From-SVN: r54202
parent c619473b
2002-06-03 Marc Espie <espie@openbsd.org>
* config/cpu/m68k/bits/atomicity.h(__exchange_and_add): Fix inline
assembly for old assemblers.
2002-06-03 Phil Edwards <pme@gcc.gnu.org>
* include/bits/stl_bvector.h (swap(_Bit_reference,_Bit_reference)):
......
......@@ -45,7 +45,7 @@ __exchange_and_add (volatile _Atomic_word *__mem, int __val)
__asm__ __volatile__ ("1: move%.l %0,%1\n\t"
"add%.l %2,%1\n\t"
"cas%.l %0,%1,%3\n\t"
"jbne 1b"
"jne 1b"
: "=d" (__result), "=&d" (__temp)
: "d" (__val), "m" (*__mem), "0" (__result)
: "memory");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment