From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21320 invoked by alias); 29 Apr 2004 07:38:56 -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 21297 invoked from network); 29 Apr 2004 07:38:54 -0000 Received: from unknown (HELO sunsite.ms.mff.cuni.cz) (195.113.15.26) by sources.redhat.com with SMTP; 29 Apr 2004 07:38:54 -0000 Received: from sunsite.ms.mff.cuni.cz (sunsite.mff.cuni.cz [127.0.0.1]) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8) with ESMTP id i3T5Qm3j010080; Thu, 29 Apr 2004 07:26:49 +0200 Received: (from jakub@localhost) by sunsite.ms.mff.cuni.cz (8.12.8/8.12.8/Submit) id i3T5Qmjj010070; Thu, 29 Apr 2004 07:26:48 +0200 Date: Thu, 29 Apr 2004 07:38:00 -0000 From: Jakub Jelinek To: Ulrich Drepper Cc: Glibc hackers , Dan Kegel , "M.H.VanLeeuwen" Subject: [PATCH] Fix [BZ #139] Message-ID: <20040429052647.GQ5191@sunsite.ms.mff.cuni.cz> Reply-To: Jakub Jelinek Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4i X-SW-Source: 2004-04/txt/msg00092.txt.bz2 Hi! The extra checks I've added to binutils prevent this from assembling (before it has been silently using %f29 instead of %f60). 2004-04-29 Jakub Jelinek * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c (_Qp_qtoi): Use %f31 for single precision register, add it to __asm clobbers [BZ #139]. --- libc/sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c.jj 2001-07-06 06:56:05.000000000 +0200 +++ libc/sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c 2004-04-29 09:22:20.847934043 +0200 @@ -1,6 +1,6 @@ /* Software floating-point emulation. Return (int)(*a) - Copyright (C) 1997,1999 Free Software Foundation, Inc. + Copyright (C) 1997, 1999, 2004 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson (rth@cygnus.com) and Jakub Jelinek (jj@ultra.linux.cz). @@ -38,9 +38,9 @@ int _Qp_qtoi(const long double *a) __asm ( " ldd [%1], %%f52\n" " ldd [%1+8], %%f54\n" -" fqtoi %%f52, %%f60\n" -" st %%f60, [%0]\n" -" " : : "r" (&rx), "r" (a) : QP_CLOBBER); +" fqtoi %%f52, %%f31\n" +" st %%f31, [%0]\n" +" " : : "r" (&rx), "r" (a) : QP_CLOBBER, "f31"); r = rx); return r; Jakub