Correct order of arguments of __arm_assisted_compare_and_exchange_val_32_acq.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 21 Sep 2012 23:42:16 +0000 (23:42 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 21 Sep 2012 23:42:16 +0000 (23:42 +0000)
ports/ChangeLog.arm
ports/sysdeps/arm/bits/atomic.h

index a0c583b..b6c0225 100644 (file)
@@ -1,3 +1,9 @@
+2012-09-21  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/arm/bits/atomic.h [!__GCC_HAVE_SYNC_COMPARE_AND_SWAP_4]
+       (__arch_compare_and_exchange_val_32_acq): Correct order of
+       arguments of __arm_assisted_compare_and_exchange_val_32_acq.
+
 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/arm/get-rounding-mode.h: New file.
index 9984210..39e276f 100644 (file)
@@ -58,7 +58,7 @@ void __arm_link_error (void);
   __sync_val_compare_and_swap ((mem), (oldval), (newval))
 #else
 # define __arch_compare_and_exchange_val_32_acq(mem, newval, oldval) \
-  __arm_assisted_compare_and_exchange_val_32_acq ((mem), (oldval), (newval))
+  __arm_assisted_compare_and_exchange_val_32_acq ((mem), (newval), (oldval))
 #endif
 
 /* We don't support atomic operations on any non-word types.