Re: [Boost-bugs] [Boost C++ Libraries] #6060: Warning generated in SNC C++ compiler by use of __sync_fetch_and_add

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6060: Warning generated in SNC C++ compiler by use of __sync_fetch_and_add
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-26 12:59:06


#6060: Warning generated in SNC C++ compiler by use of __sync_fetch_and_add
-----------------------------------------------+----------------------------
  Reporter: Fernando Diaz <fdiaza@…> | Owner: pdimov
      Type: Patches | Status: new
 Milestone: To Be Determined | Component: smart_ptr
   Version: Boost 1.47.0 | Severity: Optimization
Resolution: | Keywords:
-----------------------------------------------+----------------------------

Comment (by Fernando Diaz <fdiaza@…>):

 I see. In any case, am I correct in seeing

 {{{__sync_fetch_and_add( pw, -1 );}}}

 and

 {{{__sync_fetch_and_sub( pw, 1 );}}}

 as interchangeable? Because if the change is correct, but cannot be
 incorporated into boost, I could keep it on my side and reapply it each
 time boost is updated.
 Thanks!

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6060#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:07 UTC