Revert "Fix read_ordered.h inclusion for ARM"
authorIvan Maidanski <ivmai@mail.ru>
Thu, 14 Feb 2013 09:59:38 +0000 (10:59 +0100)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 14 Feb 2013 09:59:38 +0000 (10:59 +0100)
(because it makes load_acquire/read incorrect for multi-core ARM)

This reverts commit fcc838be49c98486c26738764f895d34de0716be.

src/atomic_ops/sysdeps/armcc/arm_v6.h
src/atomic_ops/sysdeps/gcc/arm.h
src/atomic_ops/sysdeps/msftc/arm.h

index cd3d2f4..59054a7 100644 (file)
@@ -19,7 +19,7 @@
  * modified is included with the above copyright notice.
  *
  */
-
+#include "../read_ordered.h"
 #include "../test_and_set_t_is_ao_t.h" /* Probably suboptimal */
 
 #if __TARGET_ARCH_ARM < 6
@@ -261,5 +261,3 @@ AO_compare_double_and_swap_double(volatile AO_double_t *addr,
 #endif /* __TARGET_ARCH_ARM >= 6 */
 
 #define AO_T_IS_INT
-
-#include "../read_ordered.h"
index 17cb568..236c54b 100644 (file)
@@ -15,6 +15,8 @@
  *
  */
 
+#include "../read_ordered.h"
+
 #include "../test_and_set_t_is_ao_t.h" /* Probably suboptimal */
 
 #if defined(__thumb__) && !defined(__thumb2__)
@@ -535,5 +537,3 @@ AO_fetch_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val)
 
 /* FIXME: 32-bit ABI is assumed.    */
 #define AO_T_IS_INT
-
-#include "../read_ordered.h"
index 3f76cc9..fedabae 100644 (file)
@@ -20,6 +20,8 @@
  * SOFTWARE.
  */
 
+#include "../read_ordered.h"
+
 #ifndef AO_ASSUME_WINDOWS98
   /* CAS is always available */
 # define AO_ASSUME_WINDOWS98
@@ -61,5 +63,3 @@
 #endif /* _M_ARM < 6 */
 
 #define AO_T_IS_INT
-
-#include "../read_ordered.h"