]> 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>
Mon, 25 Feb 2013 15:02:06 +0000 (19:02 +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 fd6113d3317b407c82efa459d5f4dac24490815c..78b99a5f0d1f3ed2e4d18615d5946ec43717d483 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 0d7a93fc83b8588c1a8f71932f92b6d95f0a4afc..e157b613702d48e415e545d88d83fa9785f57f5d 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     */
index 9391ceee5f78034b7703697ef5722c759ccb7d98..614c9e9265f9701aaf316031823f435d71032439 100644 (file)
@@ -20,8 +20,6 @@
  * SOFTWARE.
  */
 
-#include "../read_ordered.h"
-
 #ifndef AO_ASSUME_WINDOWS98
   /* CAS is always available */
 # define AO_ASSUME_WINDOWS98