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-25 21:00:26


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

 This is a problem with SNC. The prototype of !__sync_fetch_and_add is

 {{{type __sync_fetch_and_add (type *ptr, type value, ...)}}}

 i.e. the second argument should be the same type as the first, which, in
 shared_ptr's code, is sp_int32_t, a signed integer.

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