This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[3.4/4.0] backport: boehm-gc/include/private/gc_locks.h: Fix a constraint.
- From: Matthias Klose <doko at cs dot tu-berlin dot de>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Richard Earnshaw <Richard dot Earnshaw at arm dot com>, mark at codesourcery dot com, gdr at integrable-solutions dot net
- Date: Mon, 5 Dec 2005 12:59:17 +0100
- Subject: [3.4/4.0] backport: boehm-gc/include/private/gc_locks.h: Fix a constraint.
This patch needs to be backported to allow bootstrap succeed on at
least arm-linux with recent binutils. Ok for 3.4 and 4.0?
http://gcc.gnu.org/ml/gcc-patches/2005-09/msg00955.html
2005-09-15 Kazu Hirata <kazu@codesourcery.com>
* include/private/gc_locks.h (GC_test_and_set): Change the
constraint of the first operand to '0'.
Index: boehm-gc/include/private/gc_locks.h
===================================================================
--- boehm-gc/include/private/gc_locks.h (revision 104328)
+++ boehm-gc/include/private/gc_locks.h (revision 104331)
@@ -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;
}