Date: Thu, 2 Feb 2017 01:33:09 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r313080 - head/sys/i386/include Message-ID: <201702020133.v121X95M000791@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201702020133.v121X95M000791>