svn commit: r313080 - head/sys/i386/include

Mateusz Guzik mjg at FreeBSD.org
Thu Feb 2 01:33:10 UTC 2017


Author: mjg
Date: Thu Feb  2 01:33:08 2017
New Revision: 313080
URL: https://svnweb.freebsd.org/changeset/base/313080

Log:
  i386: fixup fcmpset
  
  An incorrect output specifier was used which worked with clang by accident,
  but breaks with the in-tree gcc version.
  
  While here plug a whitespace nit.
  
  Reported by:	bde

Modified:
  head/sys/i386/include/atomic.h

Modified: head/sys/i386/include/atomic.h
==============================================================================
--- head/sys/i386/include/atomic.h	Thu Feb  2 01:21:55 2017	(r313079)
+++ head/sys/i386/include/atomic.h	Thu Feb  2 01:33:08 2017	(r313080)
@@ -225,9 +225,9 @@ atomic_fcmpset_int(volatile u_int *dst, 
 	"	cmpxchgl %3,%1 ;	"
 	"       sete	%0 ;		"
 	"# atomic_cmpset_int"
-	: "=r" (res),			/* 0 */
+	: "=q" (res),			/* 0 */
 	  "+m" (*dst),			/* 1 */
-	  "+a" (*expect)			/* 2 */
+	  "+a" (*expect)		/* 2 */
 	: "r" (src)			/* 3 */
 	: "memory", "cc");
 	return (res);


More information about the svn-src-all mailing list