]> granicus.if.org Git - libatomic_ops/commitdiff
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>
Sat, 2 Feb 2013 09:54:39 +0000 (13:54 +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.

Conflicts:

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

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

index fd6113d3317b407c82efa459d5f4dac24490815c..2ce4bef33efd0cd049cef21f4dbc492bcdf8246b 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
@@ -232,3 +232,5 @@ AO_compare_double_and_swap_double(volatile AO_double_t *addr,
 #define AO_HAVE_compare_double_and_swap_double
 
 #endif // __TARGET_ARCH_ARM
+
+#include "../read_ordered.h"
index 0d7a93fc83b8588c1a8f71932f92b6d95f0a4afc..dd47eb7266b30dfe006efc327ad56d6cf5529061 100644 (file)
@@ -15,8 +15,6 @@
  *
  */
 
-#include "../read_ordered.h"
-
 #include "../test_and_set_t_is_ao_t.h" /* Probably suboptimal */
 
 /* NEC LE-IT: ARMv6 is the first architecture providing support for     */
@@ -354,3 +352,5 @@ AO_compare_and_swap(volatile AO_t *addr, AO_t old_val, AO_t new_val)
   }
 # define AO_HAVE_test_and_set_full
 #endif /* !AO_HAVE_test_and_set[_full] */
+
+#include "../read_ordered.h"
index 9391ceee5f78034b7703697ef5722c759ccb7d98..927d6866184afe3354dcf73c19a3e363d5b8b1e2 100644 (file)
@@ -20,8 +20,6 @@
  * SOFTWARE.
  */
 
-#include "../read_ordered.h"
-
 #ifndef AO_ASSUME_WINDOWS98
   /* CAS is always available */
 # define AO_ASSUME_WINDOWS98
@@ -90,3 +88,5 @@ AO_store_full(volatile AO_t *addr, AO_t value)
 /* AO_test_and_set_full() is emulated using CAS.                        */
 
 #endif /* _M_ARM < 6 */
+
+#include "../read_ordered.h"