[Boost-bugs] [Boost C++ Libraries] #9065: [interprocess] atomic_cas32 inline assembly wrong on ppc32

Subject: [Boost-bugs] [Boost C++ Libraries] #9065: [interprocess] atomic_cas32 inline assembly wrong on ppc32
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-08-29 22:22:34


#9065: [interprocess] atomic_cas32 inline assembly wrong on ppc32
---------------------------------------+--------------------------
 Reporter: Petr Machata <pmachata@…> | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: interprocess
  Version: Boost 1.54.0 | Severity: Problem
 Keywords: |
---------------------------------------+--------------------------
 This shows itself as a number of failures in test suite, some of which
 include test cases spinning infinitely. The problem (as discovered by
 Jaroslav Å karvada and reported in Red Hat bugzilla
 https://bugzilla.redhat.com/show_bug.cgi?id=1002578 ) is in inline
 assembly in atomic_cas32. The comparison is done against "with" and the
 new value is "cmp". The attached patch swaps the order of arguments
 passed to the inline assembly block so that they match the order of
 incoming function arguments, which fixes the problem.

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