diff options
author | Koen Kooi <koen@openembedded.org> | 2009-11-04 22:03:23 +0100 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2009-11-04 22:03:23 +0100 |
commit | 3a26240e09072ec125f80e3a0131080265a2fac7 (patch) | |
tree | 1c8facb86ebefb65c59dd071f5fe2b0f104bd8c3 /recipes/boost/files/arm-intrinsics.patch | |
parent | a0afb38137e89893bcd31b3a617cf60b0ed3cd9c (diff) |
boost 1.36: various ARM fixups:
* changed intrinsics patch to work for armv6 and armv7a
* disabled atomic ops for arm versions <6
* fix associated build damage
* pass in correct gcc version
Diffstat (limited to 'recipes/boost/files/arm-intrinsics.patch')
-rw-r--r-- | recipes/boost/files/arm-intrinsics.patch | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/recipes/boost/files/arm-intrinsics.patch b/recipes/boost/files/arm-intrinsics.patch index 860b6df67c..1f1eed684a 100644 --- a/recipes/boost/files/arm-intrinsics.patch +++ b/recipes/boost/files/arm-intrinsics.patch @@ -5,7 +5,7 @@ diff -Nurd boost_1_36_0.orig/boost/detail/atomic_count_sync.hpp boost_1_36_0.arm void operator++() { -+#ifdef __ARM_ARCH_7A__ ++#if defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_6J__) + int v1, tmp; + asm volatile ("1: \n\t" + "ldrex %0, %1 \n\t" @@ -22,7 +22,7 @@ diff -Nurd boost_1_36_0.orig/boost/detail/atomic_count_sync.hpp boost_1_36_0.arm long operator--() { -+#ifdef __ARM_ARCH_7A__ ++#if defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_6J__) + int v1, tmp; + asm volatile ("1: \n\t" + "ldrex %0, %1 \n\t" @@ -40,7 +40,7 @@ diff -Nurd boost_1_36_0.orig/boost/detail/atomic_count_sync.hpp boost_1_36_0.arm operator long() const { -+#if __ARM_ARCH_7A__ ++#if defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_6J__) + return value_; +#else return __sync_fetch_and_add( &value_, 0 ); |