From 8bbf5e19dbe2c82ada594f98760aca3a7afcf142 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Sun, 8 Nov 2015 17:24:30 +0300 Subject: [PATCH] Corrected compiler check for BOOST_ATOMIC_DETAIL_NO_ASM_IMPLIED_ZERO_DISPLACEMENTS. --- include/boost/atomic/detail/config.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/atomic/detail/config.hpp b/include/boost/atomic/detail/config.hpp index d79c9a9..2dc0dbb 100644 --- a/include/boost/atomic/detail/config.hpp +++ b/include/boost/atomic/detail/config.hpp @@ -36,7 +36,7 @@ #define BOOST_ATOMIC_DETAIL_ASM_CLOBBER_CC_COMMA #endif -#if (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(BOOST_GCC) && (BOOST_GCC+0) < 40300) +#if (defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)) && (defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) < 403) // This macro indicates we're using older binutils that don't support implied zero displacements for memory opereands, // making code like this invalid: // movl 4+(%%edx), %%eax