stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r577908 - /incubator/stdcxx/trunk/src/i86/atomic.s
Date Thu, 20 Sep 2007 20:34:19 GMT
Author: sebor
Date: Thu Sep 20 13:34:19 2007
New Revision: 577908

URL: http://svn.apache.org/viewvc?rev=577908&view=rev
Log:
2007-09-20  Martin Sebor  <sebor@roguewave.com>

	STDCXX-567
	* atomic.s (__rw_atomic_xchg8): Appended the 'b' (byte) prefix
	to the xchg instruction instead of counting on the assembler to
	figure it out from the widths of the operands to prevent an error
	when using the Sun Assembler (which, unlike the GNU assembler,
	doesn't support doing this).

Modified:
    incubator/stdcxx/trunk/src/i86/atomic.s

Modified: incubator/stdcxx/trunk/src/i86/atomic.s
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/src/i86/atomic.s?rev=577908&r1=577907&r2=577908&view=diff
==============================================================================
--- incubator/stdcxx/trunk/src/i86/atomic.s (original)
+++ incubator/stdcxx/trunk/src/i86/atomic.s Thu Sep 20 13:34:19 2007
@@ -22,7 +22,7 @@
  * implied.   See  the License  for  the  specific language  governing
  * permissions and limitations under the License.
  *
- * Copyright 2003-2006 Rogue Wave Software.
+ * Copyright 2003-2007 Rogue Wave Software, Inc.
  * 
  **************************************************************************/
 
@@ -57,7 +57,7 @@
 SYMNAME (__rw_atomic_xchg8):       /* ; char (char *x, char y)        */
     mov           4(%esp), %ecx    /* ; %ecx = x                      */
     movb          8(%esp), %al     /* ; %al = y                       */
-    xchg          %al, (%ecx)      /* ; %al <-> (%ecx)                */
+    xchgb         %al, (%ecx)      /* ; %al <-> (%ecx)                */
     ret
 
 



Mime
View raw message