From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 28 Jan 2004 19:26:54 +0000 (GMT) Received: from web21603.mail.yahoo.com ([IPv6:::ffff:66.163.169.178]:8343 "HELO web21603.mail.yahoo.com") by linux-mips.org with SMTP id ; Wed, 28 Jan 2004 19:26:54 +0000 Message-ID: <20040128192636.32578.qmail@web21603.mail.yahoo.com> Received: from [206.31.31.3] by web21603.mail.yahoo.com via HTTP; Wed, 28 Jan 2004 11:26:36 PST Date: Wed, 28 Jan 2004 11:26:36 -0800 (PST) From: Rajesh Palani Subject: SoftFloat implementation for MIPS in GCC To: linux-mips@linux-mips.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-2005043698-1075317996=:32138" Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 4175 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: rpalani2@yahoo.com Precedence: bulk X-list: linux-mips --0-2005043698-1075317996=:32138 Content-Type: text/plain; charset=us-ascii Hi, We are using a gcc 2.96 20000731 (Red Hat Linux 7.1 2.96-99.1) GCC cross-compiler with -msoftfloat to use software floating point routines. When we profied an application using the Linux Trace Toolkit, we observed that there were a lot of CpU (Co-processor unusable) exceptions. Some of the floating point routines ( eg. __floatdidf) expect values to be passed in floating point registers and take FP exceptions even though the application has been built with -msoftfloat. Is this a general MIPS/GCC issue? What is the status of softfloat for MIPS in GCC? Thanks in advance. Rajesh --------------------------------- Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! --0-2005043698-1075317996=:32138 Content-Type: text/html; charset=us-ascii
Hi,
 
   We are using a gcc 2.96 20000731 (Red Hat Linux 7.1 2.96-99.1) GCC cross-compiler with -msoftfloat to use software floating point routines.
 
   When we profied an application using the Linux Trace Toolkit, we observed that  there were a lot of CpU (Co-processor unusable) exceptions.  Some of the floating point routines ( eg. __floatdidf) expect values to be passed in floating point registers and take FP exceptions even though the application has been built with -msoftfloat.  Is this a general MIPS/GCC issue?  What is the status of softfloat  for MIPS in GCC?
 
   Thanks in advance.
 
   Rajesh


Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it! --0-2005043698-1075317996=:32138-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 28 Jan 2004 19:34:14 +0000 (GMT) Received: from nevyn.them.org ([IPv6:::ffff:66.93.172.17]:32415 "EHLO nevyn.them.org") by linux-mips.org with ESMTP id ; Wed, 28 Jan 2004 19:34:14 +0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1AlvRj-0003kF-K8; Wed, 28 Jan 2004 14:33:55 -0500 Date: Wed, 28 Jan 2004 14:33:55 -0500 From: Daniel Jacobowitz To: Rajesh Palani Cc: linux-mips@linux-mips.org Subject: Re: SoftFloat implementation for MIPS in GCC Message-ID: <20040128193355.GA14318@nevyn.them.org> References: <20040128192636.32578.qmail@web21603.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040128192636.32578.qmail@web21603.mail.yahoo.com> User-Agent: Mutt/1.5.1i Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 4176 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: dan@debian.org Precedence: bulk X-list: linux-mips On Wed, Jan 28, 2004 at 11:26:36AM -0800, Rajesh Palani wrote: > Hi, > > We are using a gcc 2.96 20000731 (Red Hat Linux 7.1 2.96-99.1) GCC cross-compiler with -msoftfloat to use software floating point routines. > > When we profied an application using the Linux Trace Toolkit, we observed that there were a lot of CpU (Co-processor unusable) exceptions. Some of the floating point routines ( eg. __floatdidf) expect values to be passed in floating point registers and take FP exceptions even though the application has been built with -msoftfloat. Is this a general MIPS/GCC issue? What is the status of softfloat for MIPS in GCC? Try a more recent compiler, that one is ancient. If you configure correctly, you should get no references to the floating point registers at all. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 28 Jan 2004 19:53:45 +0000 (GMT) Received: from gateway-1237.mvista.com ([IPv6:::ffff:12.44.186.158]:17916 "EHLO orion.mvista.com") by linux-mips.org with ESMTP id ; Wed, 28 Jan 2004 19:53:44 +0000 Received: (from jsun@localhost) by orion.mvista.com (8.11.6/8.11.6) id i0SJrCL06815; Wed, 28 Jan 2004 11:53:12 -0800 Date: Wed, 28 Jan 2004 11:53:12 -0800 From: Jun Sun To: Daniel Jacobowitz Cc: Rajesh Palani , linux-mips@linux-mips.org, jsun@mvista.com Subject: Re: SoftFloat implementation for MIPS in GCC Message-ID: <20040128115312.B6210@mvista.com> References: <20040128192636.32578.qmail@web21603.mail.yahoo.com> <20040128193355.GA14318@nevyn.them.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20040128193355.GA14318@nevyn.them.org>; from dan@debian.org on Wed, Jan 28, 2004 at 02:33:55PM -0500 Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 4177 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: jsun@mvista.com Precedence: bulk X-list: linux-mips On Wed, Jan 28, 2004 at 02:33:55PM -0500, Daniel Jacobowitz wrote: > On Wed, Jan 28, 2004 at 11:26:36AM -0800, Rajesh Palani wrote: > > Hi, > > > > We are using a gcc 2.96 20000731 (Red Hat Linux 7.1 2.96-99.1) GCC cross-compiler with -msoftfloat to use software floating point routines. > > > > When we profied an application using the Linux Trace Toolkit, we observed that there were a lot of CpU (Co-processor unusable) exceptions. Some of the floating point routines ( eg. __floatdidf) expect values to be passed in floating point registers and take FP exceptions even though the application has been built with -msoftfloat. Is this a general MIPS/GCC issue? What is the status of softfloat for MIPS in GCC? > > Try a more recent compiler, that one is ancient. If you configure > correctly, you should get no references to the floating point registers > at all. > If glibc is not compiled with -msoftfloat, I think you will get a few FPU exceptions from glibc no matter how apps are compiled. Actually, will it be a problem if glibc and apps are compiled differently (such as in longjump, sig handling area)? Jun From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 28 Jan 2004 19:59:19 +0000 (GMT) Received: from avtrex.com ([IPv6:::ffff:216.102.217.178]:48584 "EHLO avtrex.com") by linux-mips.org with ESMTP id ; Wed, 28 Jan 2004 19:59:17 +0000 Received: from avtrex.com ([192.168.0.111] RDNS failed) by avtrex.com with Microsoft SMTPSVC(5.0.2195.6713); Wed, 28 Jan 2004 11:59:12 -0800 Message-ID: <4018143B.9060902@avtrex.com> Date: Wed, 28 Jan 2004 11:57:47 -0800 From: David Daney User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031030 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jun Sun CC: Daniel Jacobowitz , Rajesh Palani , linux-mips@linux-mips.org Subject: Re: SoftFloat implementation for MIPS in GCC References: <20040128192636.32578.qmail@web21603.mail.yahoo.com> <20040128193355.GA14318@nevyn.them.org> <20040128115312.B6210@mvista.com> In-Reply-To: <20040128115312.B6210@mvista.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 Jan 2004 19:59:12.0992 (UTC) FILETIME=[336C8600:01C3E5D9] Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 4178 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: ddaney@avtrex.com Precedence: bulk X-list: linux-mips Jun Sun wrote: >On Wed, Jan 28, 2004 at 02:33:55PM -0500, Daniel Jacobowitz wrote: > > >>On Wed, Jan 28, 2004 at 11:26:36AM -0800, Rajesh Palani wrote: >> >> >>>Hi, >>> >>> We are using a gcc 2.96 20000731 (Red Hat Linux 7.1 2.96-99.1) GCC cross-compiler with -msoftfloat to use software floating point routines. >>> >>> When we profied an application using the Linux Trace Toolkit, we observed that there were a lot of CpU (Co-processor unusable) exceptions. Some of the floating point routines ( eg. __floatdidf) expect values to be passed in floating point registers and take FP exceptions even though the application has been built with -msoftfloat. Is this a general MIPS/GCC issue? What is the status of softfloat for MIPS in GCC? >>> >>> >>Try a more recent compiler, that one is ancient. If you configure >>correctly, you should get no references to the floating point registers >>at all. >> >> >> > >If glibc is not compiled with -msoftfloat, I think you will get a few >FPU exceptions from glibc no matter how apps are compiled. > >Actually, will it be a problem if glibc and apps are compiled differently >(such as in longjump, sig handling area)? > > I have found that some versions of glibc (2.2.5 for example) have hard coded floating point code (in longjump handling IIRC) so no matter what you do you get the exceptions. David Daney. From mboxrd@z Thu Jan 1 00:00:00 1970 Received: with ECARTIS (v1.0.0; list linux-mips); Wed, 28 Jan 2004 20:00:58 +0000 (GMT) Received: from nevyn.them.org ([IPv6:::ffff:66.93.172.17]:36256 "EHLO nevyn.them.org") by linux-mips.org with ESMTP id ; Wed, 28 Jan 2004 20:00:57 +0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1Alvrg-00048J-1L; Wed, 28 Jan 2004 15:00:44 -0500 Date: Wed, 28 Jan 2004 15:00:44 -0500 From: Daniel Jacobowitz To: Jun Sun Cc: Rajesh Palani , linux-mips@linux-mips.org Subject: Re: SoftFloat implementation for MIPS in GCC Message-ID: <20040128200044.GA15794@nevyn.them.org> References: <20040128192636.32578.qmail@web21603.mail.yahoo.com> <20040128193355.GA14318@nevyn.them.org> <20040128115312.B6210@mvista.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040128115312.B6210@mvista.com> User-Agent: Mutt/1.5.1i Return-Path: X-Envelope-To: <"|/home/ecartis/ecartis -s linux-mips"> (uid 0) X-Orcpt: rfc822;linux-mips@linux-mips.org Original-Recipient: rfc822;linux-mips@linux-mips.org X-archive-position: 4179 X-ecartis-version: Ecartis v1.0.0 Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org X-original-sender: dan@debian.org Precedence: bulk X-list: linux-mips On Wed, Jan 28, 2004 at 11:53:12AM -0800, Jun Sun wrote: > On Wed, Jan 28, 2004 at 02:33:55PM -0500, Daniel Jacobowitz wrote: > > On Wed, Jan 28, 2004 at 11:26:36AM -0800, Rajesh Palani wrote: > > > Hi, > > > > > > We are using a gcc 2.96 20000731 (Red Hat Linux 7.1 2.96-99.1) GCC cross-compiler with -msoftfloat to use software floating point routines. > > > > > > When we profied an application using the Linux Trace Toolkit, we observed that there were a lot of CpU (Co-processor unusable) exceptions. Some of the floating point routines ( eg. __floatdidf) expect values to be passed in floating point registers and take FP exceptions even though the application has been built with -msoftfloat. Is this a general MIPS/GCC issue? What is the status of softfloat for MIPS in GCC? > > > > Try a more recent compiler, that one is ancient. If you configure > > correctly, you should get no references to the floating point registers > > at all. > > > > If glibc is not compiled with -msoftfloat, I think you will get a few > FPU exceptions from glibc no matter how apps are compiled. > > Actually, will it be a problem if glibc and apps are compiled differently > (such as in longjump, sig handling area)? Yes, that will be a problem. Nothing that takes or returns a floating point value will work either. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer