]> granicus.if.org Git - libatomic_ops/commitdiff
Fix (remove) invalid include of read_ordered.h for ARM
authorIvan Maidanski <ivmai@mail.ru>
Thu, 14 Feb 2013 10:08:47 +0000 (14:08 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Thu, 14 Feb 2013 10:08:47 +0000 (14:08 +0400)
(fix commit 2df9c1e partially)

* src/atomic_ops/sysdeps/gcc/arm.h: Do not include read_ordered.h
(because load_acquire should contain a DMB instruction in a multi-core
case, new load_acquire/read primitives implementation is generalized
using nop_full/read which either contain a DMB instruction, or is just
a compiler barrier for uniprocessor).
* src/atomic_ops/sysdeps/armcc/arm_v6.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 59054a7ce5e7836a03737fa5df4954c09b18a144..9376e5bf8b15a34094de771bdd3ee2f1278550a4 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
index 236c54bcb343a802194c7a6714a1d9eb15d1223a..95d2f6bf1f9e2329d07743d41f6b19bc32f6b011 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__)
index fedabae1aa1df11f547e491743b5a602b0a5fec9..647373b7e13d90ddebcc81f90450c04b1be60828 100644 (file)
@@ -20,8 +20,6 @@
  * SOFTWARE.
  */
 
-#include "../read_ordered.h"
-
 #ifndef AO_ASSUME_WINDOWS98
   /* CAS is always available */
 # define AO_ASSUME_WINDOWS98