This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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;
         }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]