Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84856 - trunk/boost/atomic/detail
From: andrey.semashev_at_[hidden]
Date: 2013-06-21 04:25:35


Author: andysem
Date: 2013-06-21 04:25:35 EDT (Fri, 21 Jun 2013)
New Revision: 84856
URL: http://svn.boost.org/trac/boost/changeset/84856

Log:
Disabled __atomic* intrinsics for Intel compiler.

Text files modified:
   trunk/boost/atomic/detail/platform.hpp | 4 +++-
   1 files changed, 3 insertions(+), 1 deletions(-)

Modified: trunk/boost/atomic/detail/platform.hpp
==============================================================================
--- trunk/boost/atomic/detail/platform.hpp Thu Jun 20 18:56:09 2013 (r84855)
+++ trunk/boost/atomic/detail/platform.hpp 2013-06-21 04:25:35 EDT (Fri, 21 Jun 2013) (r84856)
@@ -15,7 +15,9 @@
 #pragma once
 #endif
 
-#if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 407)) || (defined(BOOST_CLANG) && ((__clang_major__ * 100 + __clang_minor__) >= 302))
+// Intel compiler does not support __atomic* intrinsics properly, although defines them
+#if (defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 407) && !defined(BOOST_INTEL_CXX_VERSION))\
+ || (defined(BOOST_CLANG) && ((__clang_major__ * 100 + __clang_minor__) >= 302))
 
     #include <boost/atomic/detail/gcc-atomic.hpp>
 


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk