document that the native amd64 atomic ops implementation is incomplete
authorLennart Poettering <lennart@poettering.net>
Mon, 10 Sep 2007 18:55:36 +0000 (18:55 +0000)
committerLennart Poettering <lennart@poettering.net>
Mon, 10 Sep 2007 18:55:36 +0000 (18:55 +0000)
git-svn-id: file:///home/lennart/svn/public/pulseaudio/branches/lennart@1785 fefdeb5f-60dc-0310-8127-8f9354f1896f

src/pulsecore/atomic.h

index 6e33c99..6fb85f0 100644 (file)
@@ -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 {