From 27c3bd497d931afd30668955fd39c24c030d27ab Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 10 Sep 2007 18:55:36 +0000 Subject: [PATCH] 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 --- src/pulsecore/atomic.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pulsecore/atomic.h b/src/pulsecore/atomic.h index 6e33c99..6fb85f0 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 { -- 2.7.4