summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2007-09-10 18:55:36 +0000
committerLennart Poettering <lennart@poettering.net>2007-09-10 18:55:36 +0000
commit27c3bd497d931afd30668955fd39c24c030d27ab (patch)
tree2a8a8a5b2769cfb6e1e8a598091d620ffc7ba658
parent06db9219a0445c026e57945aabc3e6dd4be52d2e (diff)
document that the native amd64 atomic ops implementation is incomplete
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1785 fefdeb5f-60dc-0310-8127-8f9354f1896f
-rw-r--r--src/pulsecore/atomic.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/atomic.h b/src/pulsecore/atomic.h
index 6e33c993..6fb85f09 100644
--- a/src/pulsecore/atomic.h
+++ b/src/pulsecore/atomic.h
@@ -109,6 +109,8 @@ static inline int pa_atomic_ptr_cmpxchg(pa_atomic_ptr_t *a, void *old_p, void* n
#elif defined(__GNUC__) && (defined(__amd64__) || defined(__x86_64__))
+#error "The native atomic operations implementation for AMD64 has not been tested. libatomic_ops is known to not work properly on AMD64 and your gcc version is too old for the gcc-builtin atomic ops support. You have three options now: make the native atomic operations implementation for AMD64 work, fix libatomic_ops, or upgrade your GCC."
+
/* Addapted from glibc */
typedef struct pa_atomic {