Re: [Boost-bugs] [Boost C++ Libraries] #10204: boost::lockfree:queue: g++ -fgnu-tm and -O1/2/3 flag not working

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #10204: boost::lockfree:queue: g++ -fgnu-tm and -O1/2/3 flag not working
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2014-07-16 15:21:25


#10204: boost::lockfree:queue: g++ -fgnu-tm and -O1/2/3 flag not working
-------------------------+-------------------------------------------------
  Reporter: | Owner: timblechmann
  philipp.schoppe@… | Status: new
      Type: Bugs | Component: atomic
 Milestone: To Be | Severity: Problem
  Determined | Keywords: -fgnu-tm -O compiler flag
   Version: Boost | combination
  1.55.0 |
Resolution: |
-------------------------+-------------------------------------------------

Comment (by anonymous):

 With boost 1.56 I get the same error (it only uses different header
 files):


 {{{
 g++ -Idownload/modular-boost/ -O2 -fgnu-tm errtest.cpp
 In file included from download/modular-
 boost/boost/atomic/detail/operations_lockfree.hpp:21:0,
                  from download/modular-
 boost/boost/atomic/detail/operations.hpp:17,
                  from download/modular-boost/boost/atomic/fences.hpp:21,
                  from download/modular-boost/boost/atomic/atomic.hpp:20,
                  from download/modular-boost/boost/atomic.hpp:12,
                  from download/modular-
 boost/boost/lockfree/detail/atomic.hpp:30,
                  from download/modular-boost/boost/lockfree/queue.hpp:19,
                  from errtest.cpp:1:
 download/modular-boost/boost/atomic/detail/ops_gcc_atomic.hpp: In static
 member function ‘static v
 download/modular-boost/boost/atomic/detail/ops_gcc_atomic.hpp:67:39:
 error: inlining failed in cal
  BOOST_FORCEINLINE BOOST_CONSTEXPR int
 convert_memory_order_to_gcc(memory_order order) BOOST_NOEXC
                                        ^
 download/modular-boost/boost/atomic/detail/ops_gcc_atomic.hpp:81:90:
 error: called from here
          __atomic_store_n(&storage, v,
 atomics::detail::convert_memory_order_to_gcc(order));

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/10204#comment:2>
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:16 UTC