Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r57949 - trunk/boost/smart_ptr/detail
From: pdimov_at_[hidden]
Date: 2009-11-26 13:21:21


Author: pdimov
Date: 2009-11-26 13:21:21 EST (Thu, 26 Nov 2009)
New Revision: 57949
URL: http://svn.boost.org/trac/boost/changeset/57949

Log:
Fix SPARC asm operand failure. Refs #3678. Refs #3341.
Text files modified:
   trunk/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp
==============================================================================
--- trunk/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp (original)
+++ trunk/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp 2009-11-26 13:21:21 EST (Thu, 26 Nov 2009)
@@ -30,9 +30,9 @@
 
 inline int32_t compare_and_swap( int32_t * dest_, int32_t compare_, int32_t swap_ )
 {
- __asm__ __volatile__( "cas %0, %2, %1"
- : "+m" (*dest_), "+r" (swap_)
- : "r" (compare_)
+ __asm__ __volatile__( "cas [%1], %2, %0"
+ : "+r" (swap_)
+ : "r" (dest_), "r" (compare_)
                         : "memory" );
 
     return swap_;


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk