aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/os/unix/ngx_gcc_atomic_amd64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os/unix/ngx_gcc_atomic_amd64.h b/src/os/unix/ngx_gcc_atomic_amd64.h
index 289cd614e..faaf7afe8 100644
--- a/src/os/unix/ngx_gcc_atomic_amd64.h
+++ b/src/os/unix/ngx_gcc_atomic_amd64.h
@@ -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;
}