enable gcc atomic intrinsics on certain older gcc that does not advertize its atomics when targeting intel

This commit is contained in:
Jeff Hill
2011-08-05 10:50:25 -06:00
committed by Andrew Johnson
parent cedcddd0e8
commit e1e3ec6c22
+6 -2
View File
@@ -34,9 +34,13 @@
GCC_ATOMIC_CONCAT ( \
__GCC_HAVE_SYNC_COMPARE_AND_SWAP_, \
__SIZEOF_SIZE_T__ )
#define GCC_ATOMIC_INTRINSICS_AVAIL_EARLIER \
defined ( __i386 ) && ( __GNUC__ * 100 + __GNUC_MINOR__ ) >= 401
#if GCC_ATOMIC_INTRINSICS_AVAIL_UINT_T \
&& defined GCC_ATOMIC_INTRINSICS_AVAIL_SIZE_T
#if ( GCC_ATOMIC_INTRINSICS_AVAIL_UINT_T \
&& GCC_ATOMIC_INTRINSICS_AVAIL_SIZE_T ) \
|| GCC_ATOMIC_INTRINSICS_AVAIL_EARLIER
#define OSD_ATOMIC_GCC