]> git.lyx.org Git - features.git/blobdiff - boost/boost/smart_ptr/detail/sp_counted_base_gcc_sparc.hpp
boost: update to 1.42.0
[features.git] / boost / boost / smart_ptr / detail / sp_counted_base_gcc_sparc.hpp
index 8af6f0a972ab11f1157573e5c6e5a4e496ab84fb..21fa59dcc4fa3cc58dd95b1b2af2fcc952f74f15 100644 (file)
@@ -30,9 +30,9 @@ namespace detail
 
 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_;