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-08-01 10:48:54


#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 olli):

 Replying to [comment:7 andysem]:
> Replying to [comment:6 olli]:
> > I can reproduce the error with gcc 4.8.2 - using {{{boost::atomic<>}}}
 and {{{__transaction_atomic}}} in the same app
>
> I don't have experience with gcc transactions, but as far as I
 understand atomic ops are not transaction safe and therefore should not be
 used inside transactions.

 I do not use atomics inside {{{__transaction_atomic}}} - only some parts
 of the code using atomics (e.g. spinlocks) are replaced by
 {{{__transaction_atomic}}}

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