From 6129a75e9cea341575ba8fef9f8746f065c7bac9 Mon Sep 17 00:00:00 2001 From: Zoltan Varga Date: Tue, 9 Mar 2010 00:40:06 +0000 Subject: [PATCH] 2010-03-09 Zoltan Varga * include/private/gc_locks.h: Fix amd64 build with newer gcc's. svn path=/trunk/mono/; revision=153291 --- ChangeLog | 4 ++++ include/private/gc_locks.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5734f44a..b6235a28 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-03-09 Zoltan Varga + + * include/private/gc_locks.h: Fix amd64 build with newer gcc's. + 2010-03-04 David S. Miller * include/private/gc_locks.h: Add SPARC implementations of diff --git a/include/private/gc_locks.h b/include/private/gc_locks.h index 3803f6ac..7b8e6e1b 100644 --- a/include/private/gc_locks.h +++ b/include/private/gc_locks.h @@ -409,7 +409,7 @@ { char result; __asm__ __volatile__("lock; cmpxchgl %2, %0; setz %1" - : "+m"(*(addr)), "=r"(result) + : "+m"(*(addr)), "=q"(result) : "r" (new_val), "a"(old) : "memory"); return (GC_bool) result; } -- 2.40.0