]> granicus.if.org Git - libatomic_ops/commit
Fix asm constraint of fetch_and_add, test_and_set, fetch_CAS for MIPS (gcc)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 13 Mar 2013 18:41:58 +0000 (22:41 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Wed, 13 Mar 2013 18:41:58 +0000 (22:41 +0400)
commitfc0db46e8679904365df8a464061c144d515160d
tree7bc96df86c1781b1a25443e70fa1c012a386cae0
parent3e4c369bae21d1247a71d2611eb30ce577ced508
Fix asm constraint of fetch_and_add, test_and_set, fetch_CAS for MIPS (gcc)

* src/atomic_ops/sysdeps/gcc/mips.h (AO_fetch_and_add,
AO_test_and_set, AO_fetch_compare_and_swap): Use "+m" asm constraint
for *addr instead of "=m" (because the value pointed by addr is read
and written by the code).
src/atomic_ops/sysdeps/gcc/mips.h