Fix read_ordered.h inclusion for ARM
authorIvan Maidanski <ivmai@mail.ru>
Sun, 13 Jan 2013 16:04:36 +0000 (20:04 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 13 Jan 2013 16:13:29 +0000 (20:13 +0400)
* src/atomic_ops/sysdeps/armcc/arm_v6.h: Move include of read_ordered.h
down to the end of the file to be after AO_load/store definition
(since read_ordered.h depends on these primitives).
* src/atomic_ops/sysdeps/gcc/arm.h: Likewise.
* src/atomic_ops/sysdeps/msftc/arm.h: Likewise.

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

index 7c3f6e5..657916f 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
@@ -264,3 +264,5 @@ 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 3f19cc0..3245ce0 100644 (file)
@@ -15,8 +15,6 @@
  *
  */
 
-#include "../read_ordered.h"
-
 #include "../test_and_set_t_is_ao_t.h" /* Probably suboptimal */
 
 #if defined(__thumb__) && !defined(__thumb2__)
@@ -427,3 +425,5 @@ 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 1e73fcb..cd7500a 100644 (file)
@@ -20,8 +20,6 @@
  * SOFTWARE.
  */
 
-#include "../read_ordered.h"
-
 #ifndef AO_ASSUME_WINDOWS98
   /* CAS is always available */
 # define AO_ASSUME_WINDOWS98
@@ -74,3 +72,5 @@ AO_load(const volatile AO_t *addr)
 #endif /* _M_ARM < 6 */
 
 #define AO_T_IS_INT
+
+#include "../read_ordered.h"