From 9d18bbb3cf3a99744e679a081499b92504cabadf Mon Sep 17 00:00:00 2001 From: Stefan Fritsch Date: Sun, 21 Apr 2013 21:25:59 +0000 Subject: Fix amd64 assembler version of apr_atomic_xchgptr() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR: 51851 Submitted by: Mattias EngdegÄrd git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1470348 13f79535-47bb-0310-9956-ffa450edef68 --- atomic/unix/ia32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'atomic') diff --git a/atomic/unix/ia32.c b/atomic/unix/ia32.c index 3826f9275..63f48a753 100644 --- a/atomic/unix/ia32.c +++ b/atomic/unix/ia32.c @@ -117,7 +117,7 @@ APR_DECLARE(void*) apr_atomic_xchgptr(volatile void **mem, void *with) #elif APR_SIZEOF_VOIDP == 8 asm volatile ("xchgq %q2, %1" : "=a" (prev), "+m" (*mem) - : "r" ((unsigned long)with)); + : "0" (with)); #else #error APR_SIZEOF_VOIDP value not supported #endif -- cgit v1.2.1