summaryrefslogtreecommitdiff
path: root/arch/x86/machine/atomic.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-04-05 22:58:28 +0200
committerRichard Braun <rbraun@sceen.net>2017-04-05 22:58:28 +0200
commit5ce18996d0b4ac36e54cb70bfa78cf9a65a5ca7c (patch)
tree874ba375426b3e535dce2a7fa8c4b3eb47c0c134 /arch/x86/machine/atomic.h
parent2e05352f1df7efa4f1279b35ea3ff0141b965061 (diff)
x86/atomic: disable 64b operations on i386 when building with clang
Diffstat (limited to 'arch/x86/machine/atomic.h')
-rw-r--r--arch/x86/machine/atomic.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/x86/machine/atomic.h b/arch/x86/machine/atomic.h
index c9ec05e..b5a0b5c 100644
--- a/arch/x86/machine/atomic.h
+++ b/arch/x86/machine/atomic.h
@@ -85,8 +85,16 @@ MACRO_END
#endif /* __LP64__ */
/*
+ * XXX Clang seems to have trouble with 64-bits operations on 32-bits
+ * processors.
+ */
+#if defined(__LP64__) || !defined(__clang__)
+
+/*
* Report that 64-bits operations are supported.
*/
#define ATOMIC_HAVE_64B_OPS
+#endif /* __clang__ */
+
#endif /* _X86_ATOMIC_H */