Subject: [Boost-bugs] [Boost C++ Libraries] #10994: Using boost::atomic for 128-bit type results in build error with GCC 4.4
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-02-04 10:40:36
#10994: Using boost::atomic for 128-bit type results in build error with GCC 4.4
-----------------------------------------+--------------------------
Reporter: Martin Srom <srom.martin@â¦> | Owner: timblechmann
Type: Bugs | Status: new
Milestone: To Be Determined | Component: atomic
Version: Boost 1.57.0 | Severity: Problem
Keywords: |
-----------------------------------------+--------------------------
When using boost::atomic with 128-bit type it results into a build error
with GCC 4.4.
With GCC 4.6 it works fine.
With 64-bit type it works fine.
Minimal example:
'''main.cpp''':
{{{
#include <boost/atomic.hpp>
int main()
{
boost::atomic<__int128_t> variable(0);
variable.load();
}
}}}
'''Build command''':
{{{
g++-4.4 -O3 -mcx16 main.cpp -Iboost_1_57_0/
}}}
'''Error output''':
{{{
boost_1_57_0/boost/atomic/detail/ops_gcc_x86_dcas.hpp: In function âint
main()â:
boost_1_57_0/boost/atomic/detail/ops_gcc_x86_dcas.hpp:261: error:
impossible constraint in âasmâ
}}}
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/10994> 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:17 UTC