From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by sourceware.org (Postfix) with ESMTPS id EA8673851C03 for ; Thu, 22 Oct 2020 03:41:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org EA8673851C03 Received: by mail-lf1-x12b.google.com with SMTP id j30so416168lfp.4 for ; Wed, 21 Oct 2020 20:41:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=sj1AP9ovDolK4qYeJaXa/ysJMWCzghjR/e6JsfYbEBE=; b=iBlg7b3D0JLe9G0r0JVxgkvHx/4kzfbTXPKBK5R50tqDnXfEPckDF2WuQJccaEWsWE v9r3ADD30WTLhLzhLWyB5sjSr2XHEZY3lib8Iq8iPw1CzEnMNFhfmpO94dGwWPpqess6 P7gKnCor7detywcL6+sImtpneXLanUxuNnLckCmdpZRt+3rVFZbGzbP1Um5dvqwq6WJh BLPWgpUX91WRuaefppglzrmens3oGSuvFyBtH9dbRpr8PrtK7QhmgH/uW/5BXaod+AsW E1j1zbTfCBEAMiCs3bwolvmde6z505W6GNjeh12WmyUxaftNMUV53NxWhuQvuiysC2zz CXNA== X-Gm-Message-State: AOAM530rBRlx82PEWarHT3i2Q1YFwQUcqELJCguh+24B36c1+bTklEv2 lPG/2ov6zxOapC8yP8oUDbHruQ3zF7wm9xKV2NE= X-Google-Smtp-Source: ABdhPJzxWgcuQcRvE830I3eaZ0P1zDUiAOdH+7YwZO7CAuAvmgQMMJrvj+xN6EJBIECkK0fU4WpxPbAvU5LUYaNzBh0= X-Received: by 2002:a05:6512:3490:: with SMTP id v16mr135439lfr.61.1603338069611; Wed, 21 Oct 2020 20:41:09 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: William Tambe Date: Wed, 21 Oct 2020 22:40:56 -0500 Message-ID: Subject: Re: Enable libgcc floating point emulation routines To: Jim Wilson Cc: gcc-help Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Oct 2020 03:41:12 -0000 On Wed, Oct 21, 2020 at 9:48 PM William Tambe wrot= e: > > On Wed, Oct 21, 2020 at 6:36 PM Jim Wilson wrote: > > > > On Wed, Oct 21, 2020 at 1:27 PM William Tambe via Gcc-help wrote: > >> > >> For a specific platform, what is the proper way to enable the floating > >> point emulation routines described at ? > >> https://gcc.gnu.org/onlinedocs/gccint/Soft-float-library-routines.html= #Soft-float-library-routines > > > > > > In libgcc/config.host, add one of the t-softfp* files to tmake_file for= your host. There are a number of choices, depending on exactly which mode= s you need support for, and exactly which modes are implemented in hardware= . E.g. a target with no FP hardware and no 128-bit long double needs only = soft-float sf and df. A target with FP hardware that supports 32-bit float= only, and supports 128-bit long double, needs soft-float df and tf. Etc. = See the various target independent and target dependent t-softfp files and= pick one that matches your situation. > > In libgcc/config.host we currently have: > tmake_file=3D"${tmake_file} t-softfp-sfdf t-softfp-excl t-softfp" I ended up using: tmake_file=3D"${tmake_file} t-fpbit" and it worked. What is the difference between t-fpbit and t-softfp* ? > > However, compiling a program that uses __mulsf3() throws the following er= ror: > error: implicit declaration of function =E2=80=98__mulsf3=E2=80=99; did y= ou mean > =E2=80=98__mulsc3=E2=80=99? [-Werror=3Dimplicit-function-declaration] > > Compilation is done using -nostdlib -lgcc > > Any idea what else is missing ? > > > > > Jim > >