From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22127 invoked by alias); 22 Jan 2004 11:03:31 -0000 Mailing-List: contact libc-hacker-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-hacker-owner@sources.redhat.com Received: (qmail 22067 invoked from network); 22 Jan 2004 11:03:30 -0000 Received: from unknown (HELO Cantor.suse.de) (195.135.220.2) by sources.redhat.com with SMTP; 22 Jan 2004 11:03:30 -0000 Received: from Hermes.suse.de (Hermes.suse.de [195.135.221.8]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by Cantor.suse.de (Postfix) with ESMTP id 6FE117D10F for ; Thu, 22 Jan 2004 12:01:12 +0100 (CET) Received: by reger.suse.de (Postfix, from userid 659) id 25517D0863; Thu, 22 Jan 2004 12:01:12 +0100 (CET) To: GNU libc hackers Subject: Get rid of warning in linuxthreads/spinlock.c From: Andreas Jaeger Date: Thu, 22 Jan 2004 11:03:00 -0000 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) XEmacs/21.4 (Rational FORTRAN, linux) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-SW-Source: 2004-01/txt/msg00086.txt.bz2 --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-length: 259 this patch gets rid of: spinlock.c:33: warning: matching constraint does not allow a register Ok to commit? Andreas 2004-01-22 Andreas Jaeger * spinlock.c (__pthread_lock): Fix contraint to avoid warning. (__pthread_release): Likewise. --=-=-= Content-Disposition: inline; filename=libc-diff Content-length: 802 ============================================================ Index: linuxthreads/spinlock.c --- linuxthreads/spinlock.c 29 Aug 2002 10:32:19 -0000 1.37 +++ linuxthreads/spinlock.c 22 Jan 2004 11:00:37 -0000 @@ -30,7 +30,7 @@ static inline void __pthread_release(int { WRITE_MEMORY_BARRIER(); *spinlock = __LT_SPINLOCK_INIT; - __asm __volatile ("" : "=m" (*spinlock) : "0" (*spinlock)); + __asm __volatile ("" : "=m" (*spinlock) : "m" (*spinlock)); } @@ -106,7 +106,7 @@ void internal_function __pthread_lock(st #ifdef BUSY_WAIT_NOP BUSY_WAIT_NOP; #endif - __asm __volatile ("" : "=m" (lock->__status) : "0" (lock->__status)); + __asm __volatile ("" : "=m" (lock->__status) : "m" (lock->__status)); } lock->__spinlock += (spin_count - lock->__spinlock) / 8; --=-=-= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Content-length: 192 --=20 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj SuSE Linux AG, Maxfeldstr. 5, 90409 N=FCrnberg, Germany GPG fingerprint =3D 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126 --=-=-=-- --==-=-= Content-Type: application/pgp-signature Content-length: 188 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQBAD613OJpWPMJyoSYRAmHgAKCUgakFOOZAZvLi6+dQQ8u+/let2QCeOkpv 28e/cOSzAg/xIGxRRnjFexQ= =q+Le -----END PGP SIGNATURE----- --==-=-=--