From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23469 invoked by alias); 8 Oct 2002 21:42:05 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 23409 invoked from network); 8 Oct 2002 21:42:02 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by sources.redhat.com with SMTP; 8 Oct 2002 21:42:02 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id RAA19810; Tue, 8 Oct 2002 17:41:27 -0400 Received: from node128.ott.qnx.com (node128 [10.0.0.128]) by smtp.ott.qnx.com (8.8.8/8.6.12) with ESMTP id RAA12588; Tue, 8 Oct 2002 17:30:19 -0400 Received: by node128.ott.qnx.com (8.9.3/8.9.3) id VAA1059643426; Tue, 8 Oct 2002 21:39:21 GMT Message-Id: <200210082139.VAA1059643426@node128.ott.qnx.com> Subject: Re: soft-float support To: gp@qnx.com (Graeme Peterson) Date: Tue, 08 Oct 2002 16:26:00 -0000 From: "Graeme Peterson" Cc: aph@redhat.com (Andrew Haley), gcc@gcc.gnu.org In-Reply-To: from "Graeme Peterson" at Oct 08, 2002 04:06:46 PM MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-10/txt/msg00491.txt.bz2 This got it working. I also had to add: # Do not build libgcc1. LIBGCC1 = CROSS_LIBGCC1 = Thanks, all. GP > > I dug a little and found this, which I copied from t-rs6000: > > LIB2FUNCS_EXTRA = fp-bit.c dp-bit.c tramp.S > > dp-bit.c: $(srcdir)/config/fp-bit.c > cat $(srcdir)/config/fp-bit.c > dp-bit.c > > fp-bit.c: $(srcdir)/config/fp-bit.c > echo '#define FLOAT' > fp-bit.c > cat $(srcdir)/config/fp-bit.c >> fp-bit.c > > I'm building it now, but the comment at the top of fp-bit.c > seems promising: > > "/* This is a software floating point library which can be used instead of > the floating point routines in libgcc1.c for targets without hardware > floating point. */ " > > Think that might be it? :-) > > GP > > > > > Graeme Peterson writes: > > > Hi, all. > > > > > > I have done some searching, and it seems that gcc (in this case > > > 2.95.3 targetting ppc-QNX6) does not have support for statically > > > linked software emulated floating point instructions. > > > > > > Can someone clarify for me what is required to get this going? Do > > > I need to implement the floating point emulation and tell gcc to > > > use it in place of the fadd in the __adddf3 call? If so, how do I > > > do that? > > > > You need to specify the multilibs in your target file for qnx. > > > > For example, in the current gcc source, gcc/config/rs6000/t-rs6000 > > contains > > > > MULTILIB_OPTIONS = msoft-float > > MULTILIB_DIRNAMES = soft-float > > > > Andrew. > > > >