summaryrefslogtreecommitdiff
path: root/boehm-gc/include
diff options
context:
space:
mode:
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-15 22:35:52 +0000
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>2005-09-15 22:35:52 +0000
commitacdd72c7acc13eb592df86e94aab905e8258017a (patch)
treed730af7b5eb8a9a7d7877a73e4b2d6818267c650 /boehm-gc/include
parent5649a6eb3690f1b433f6287ba84063c1134723a3 (diff)
downloadgcc-acdd72c7acc13eb592df86e94aab905e8258017a.tar.gz
* include/private/gc_locks.h (GC_test_and_set): Change the
constraint of the first operand to '0'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104329 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'boehm-gc/include')
-rw-r--r--boehm-gc/include/private/gc_locks.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/boehm-gc/include/private/gc_locks.h b/boehm-gc/include/private/gc_locks.h
index 46605caf72d..ec3e6cd1ef2 100644
--- a/boehm-gc/include/private/gc_locks.h
+++ b/boehm-gc/include/private/gc_locks.h
@@ -209,7 +209,7 @@
/* See linuxthreads/sysdeps/arm/pt-machine.h in glibc-2.1 */
__asm__ __volatile__("swp %0, %1, [%2]"
: "=r"(oldval)
- : "r"(1), "r"(addr)
+ : "0"(1), "r"(addr)
: "memory");
return oldval;
}