From: khizmax Date: Wed, 16 Nov 2016 07:20:31 +0000 (+0300) Subject: Fixed: gcc-4.9 does not support DCAS for atomic (a lot of crashes in TaggedFreeList) X-Git-Tag: v2.2.0~54 X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c3f6356cdc15470aa8a3603afd22cc3e213aada9;p=libcds.git Fixed: gcc-4.9 does not support DCAS for atomic (a lot of crashes in TaggedFreeList) --- diff --git a/cds/compiler/gcc/defs.h b/cds/compiler/gcc/defs.h index 5c4fb8a3..055fd10d 100644 --- a/cds/compiler/gcc/defs.h +++ b/cds/compiler/gcc/defs.h @@ -104,7 +104,8 @@ // double-width CAS support // note: gcc-4.8 does not support double-word atomics -#if CDS_COMPILER_VERSION >= 40900 +// gcc-4.9: a lot of crashes when use DCAS +#if CDS_COMPILER_VERSION >= 50000 # if CDS_BUILD_BITS == 64 # ifdef __GCC_HAVE_SYNC_COMPARE_AND_SWAP_16 # define CDS_DCAS_SUPPORT