Subject: [Boost-bugs] [Boost C++ Libraries] #2000: boost/detail/spinlock_sync.hpp incorrectly included for Intel C++ on Linux
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-06-09 14:21:07
#2000: boost/detail/spinlock_sync.hpp incorrectly included for Intel C++ on Linux
--------------------------+-------------------------------------------------
Reporter: anthonyw | Owner: pdimov
Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: smart_ptr
Version: Boost 1.35.0 | Severity: Regression
Keywords: |
--------------------------+-------------------------------------------------
On a linux-x86_64 system with gcc 4.1.3 and Intel 10.1, an include of
boost/shared_ptr.hpp pulls in boost/detail/spinlock_sync.hpp, which fails
to compile since the __sync functions are undefined.
It appears this problem is due to the #if sequence in
boost/detail/spinlock.hpp. The Intel compiler defines __GNUC__ and
__GNUC_MINOR__, but doesn't provide the intrinsics.
By adding "&& !defined(BOOST_INTEL)" to the appropriate #if line as in the
attached patch, everything works.
--
Ticket URL: <http://svn.boost.org/trac/boost/ticket/2000>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC