summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2016-12-31 08:21:40 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2016-12-31 08:21:40 +0000
commit36fe995dbb0193705bec5d90f06120615c131418 (patch)
treea051aa4a9d7b70601e4641da95e1d3fac436aa8d /lib
parent2ca3b8c8a4d765087f11b53431a2d2b9fe3a2e02 (diff)
Use the unlocked atomic path in Mesa when just __arm__ is defined and
don't assume the builtin atomics are present with __ARM_ARCH_6__ and later as base gcc with -march=armv6 doesn't have them.
Diffstat (limited to 'lib')
-rw-r--r--lib/mesa/src/util/u_atomic.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/mesa/src/util/u_atomic.h b/lib/mesa/src/util/u_atomic.h
index 5710ab6da..e873a21b0 100644
--- a/lib/mesa/src/util/u_atomic.h
+++ b/lib/mesa/src/util/u_atomic.h
@@ -23,10 +23,7 @@
#define PIPE_ATOMIC_OS_SOLARIS
#elif defined(_MSC_VER)
#define PIPE_ATOMIC_MSVC_INTRINSIC
-#elif defined(__ARM_ARCH_4__) || defined(__ARM_ARCH_4T__) || \
- defined(__ARM_ARCH_5__) || defined(__ARM_ARCH_5T__) || \
- defined(__ARM_ARCH_5TE__) || defined(__ARM_ARCH_5E__) || \
- defined(__hppa__) || defined(__sparc__) || defined(__sh__)
+#elif defined(__arm__) || defined(__hppa__) || defined(__sh__)
#define PIPE_ATOMIC_UNLOCKED
#elif defined(__GNUC__)
#define PIPE_ATOMIC_GCC_INTRINSIC