]> git.kaiwu.me - nginx.git/commitdiff
use "r" instead of "q"
authorIgor Sysoev <igor@sysoev.ru>
Thu, 11 Jan 2007 16:00:02 +0000 (16:00 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Thu, 11 Jan 2007 16:00:02 +0000 (16:00 +0000)
src/os/unix/ngx_gcc_atomic_amd64.h

index 289cd614e4def8d549112a27b1e5bca8b4fab314..faaf7afe80ba98ed24ba2ee9fa083c3fe9474f04 100644 (file)
@@ -68,7 +68,7 @@ ngx_atomic_fetch_add(ngx_atomic_t *value, ngx_atomic_int_t add)
          NGX_SMP_LOCK
     "    xaddq  %0, %1;   "
 
-    : "+q" (add) : "m" (*value) : "cc", "memory");
+    : "+r" (add) : "m" (*value) : "cc", "memory");
 
     return add;
 }