OSDN Git Service

arm/bits/atomic.h: Include common/bit/atomic.h for thumb1
authorKhem Raj <raj.khem@gmail.com>
Tue, 15 Mar 2011 05:45:33 +0000 (22:45 -0700)
committerKhem Raj <raj.khem@gmail.com>
Tue, 15 Mar 2011 05:45:33 +0000 (22:45 -0700)
This restores the behavior for thumb1 builds and yet uses
the new atomic.h for arm and thumb2 modes.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
libc/sysdeps/linux/arm/bits/atomic.h

index 07101fb..0b90330 100644 (file)
@@ -16,6 +16,9 @@
    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
    02111-1307 USA.  */
 
+#if defined __thumb__ && !defined __thumb2__
+#include_next <common/bits/atomic.h>
+#else
 #include <stdint.h>
 #include <sysdep.h>
 
@@ -129,3 +132,5 @@ void __arm_link_error (void);
 
 #define __arch_compare_and_exchange_val_64_acq(mem, newval, oldval) \
   ({ __arm_link_error (); oldval; })
+
+#endif