[Boost-bugs] [Boost C++ Libraries] #8609: Compile error with PPC

Subject: [Boost-bugs] [Boost C++ Libraries] #8609: Compile error with PPC
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-23 06:31:06

#8609: Compile error with PPC
 Reporter: nicolas danet <nicolas.danet@…> | Owner: timblechmann
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: atomic
  Version: Boost 1.53.0 | Severity: Problem
 Keywords: Atomic PPC asm impossible |
 I get the error below, compiling on Xcode 2.5 / GCC 4.0 / OS X 10.4.11:

 /Users/jeantoto/dev/boost_1_53_0/boost/atomic/detail/gcc-ppc.hpp: In
 member function 'T boost::atomics::detail::base_atomic<T, int, 4u,
 Sign>::fetch_add(T, boost::memory_order) volatile [with T = long int, bool
 Sign = true]':
 error: impossible constraint in 'asm'

 1. It is on PPC arch only.
 2. Get the same error with Boost-trunk (gcc-ppc.hpp:1211).

 #include <boost/atomic.hpp>

 int main( )
     boost::atomic<long> messageCount_(0);
     messageCount_.fetch_add(1, boost::memory_order_relaxed);

Ticket URL: <https://svn.boost.org/trac/boost/ticket/8609>
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:50:13 UTC