Mesa (master): util: Use GCC atomic bultins on GCC 4.1 and higher only.
Ian Romanick
idr at kemper.freedesktop.org
Sun Apr 4 23:56:25 UTC 2010
Module: Mesa
Branch: master
Commit: 930838efcdac04dd0a0c7ee0375364548a0efe8c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=930838efcdac04dd0a0c7ee0375364548a0efe8c
Author: Vinson Lee <vlee at vmware.com>
Date: Sat Apr 3 12:14:21 2010 -0700
util: Use GCC atomic bultins on GCC 4.1 and higher only.
---
src/gallium/auxiliary/util/u_atomic.h | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/util/u_atomic.h b/src/gallium/auxiliary/util/u_atomic.h
index 3c42477..a156823 100644
--- a/src/gallium/auxiliary/util/u_atomic.h
+++ b/src/gallium/auxiliary/util/u_atomic.h
@@ -29,7 +29,7 @@
#define PIPE_ATOMIC_ASM_MSVC_X86
#elif (defined(PIPE_CC_GCC) && defined(PIPE_ARCH_X86))
#define PIPE_ATOMIC_ASM_GCC_X86
-#elif defined(PIPE_CC_GCC)
+#elif defined(PIPE_CC_GCC) && (PIPE_CC_GCC_VERSION >= 401)
#define PIPE_ATOMIC_GCC_INTRINSIC
#else
#error "Unsupported platform"
More information about the mesa-commit
mailing list