aboutsummaryrefslogtreecommitdiff
path: root/boehm-gc/include
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2005-09-15 22:35:52 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2005-09-15 22:35:52 +0000
commitdf3d9c37f93aeb69069e50e6590f034e1c1fd4bb (patch)
treed730af7b5eb8a9a7d7877a73e4b2d6818267c650 /boehm-gc/include
parentf5ea2dcaba8ac0a44948f23aef2491170693763e (diff)
downloadgcc-df3d9c37f93aeb69069e50e6590f034e1c1fd4bb.zip
gcc-df3d9c37f93aeb69069e50e6590f034e1c1fd4bb.tar.gz
gcc-df3d9c37f93aeb69069e50e6590f034e1c1fd4bb.tar.bz2
gc_locks.h (GC_test_and_set): Change the constraint of the first operand to '0'.
* include/private/gc_locks.h (GC_test_and_set): Change the constraint of the first operand to '0'. From-SVN: r104329
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 46605ca..ec3e6cd 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;
}