From 319836fe7884af0956ab0684f131423043f80d40 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 5 Apr 2005 16:04:36 +0000 Subject: [PATCH] Constraints fixed (again), volatile/memory clobber removed from conditional_inc [SVN r27983] --- include/boost/detail/sp_counted_base_gcc_x86.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/boost/detail/sp_counted_base_gcc_x86.hpp b/include/boost/detail/sp_counted_base_gcc_x86.hpp index 54ab199..0dad672 100644 --- a/include/boost/detail/sp_counted_base_gcc_x86.hpp +++ b/include/boost/detail/sp_counted_base_gcc_x86.hpp @@ -74,7 +74,7 @@ inline long atomic_conditional_increment( long * pw ) long r; - __asm__ __volatile__ + __asm__ ( "movl %0, %%eax\n\t" "0:\n\t" @@ -85,9 +85,9 @@ inline long atomic_conditional_increment( long * pw ) "cmpxchgl %%ebx, %0\n\t" "jne 0b\n\t" "1:": - "=m"( *pw ), "=&%eax"( r ): // outputs (%0, %1) + "=m"( *pw ), "=&a"( r ): // outputs (%0, %1) "m"( *pw ): // input (%2) - "%ebx", "memory", "cc" // clobbers + "ebx", "cc" // clobbers ); return r;