From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id 1A99A3857019 for ; Wed, 21 Oct 2020 23:36:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 1A99A3857019 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=sifive.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=jimw@sifive.com Received: by mail-ej1-x62d.google.com with SMTP id p5so5698150ejj.2 for ; Wed, 21 Oct 2020 16:36:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PdxPEB9v6er6yLpGeHjS3H5DzWHeS6Ifq6e+FDlJhSw=; b=Oprp97vB+De9Lsbrrm27ZqkwYHTXUF7hcQpzPrEViomXpQw9pTVVf1PxK24TRtAWir uLCPBPpv28p2yYTa6xZsZcU0xdnWbNro3QzVWaLRegLIE68fqJ/mjn39aO68eidsjQpf x0IsePzF45vIE5Vo5V63iR4Low4/jZOXRfl/ynWRxoQHeFYfW+yU5CTzI3BySBfbFX5c DG7SSTn8JJff0lWYcw99AQ7wYuZbR4fbyKvuFAyF9yx7vv9pFMdaiiMvmjiwLBvQqgyU kSdCPjkHhdy/2RUx4UecpXKeKPCnsb3JrLzXSWC3nLlOosPkA3vTUPgFMn0hDiIEcAte uEvQ== 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; bh=PdxPEB9v6er6yLpGeHjS3H5DzWHeS6Ifq6e+FDlJhSw=; b=BkAhNYyr8Lhh6LnPPPVhhHL8u9CdyuwsDldvmQDV4UXW57c1LWRRnSAvh154t0RJ1t ibqdKQ3u5KlI64KDxrGWIG17Uqz0bABigUGEOohN/XCyGuzKcwxx2FUJyq+iRG7lhhie lNHttFsCepw+bF4am/YhLAE30iq/qZsnvpsYIQMC6hS+L3/a/WGTt1MZLQAYkotiN0Kw V8WwjAOR0PqCrUpLMIeaf8ib4vTlSK5BfVVdTgsi+kJ4RskrK0bIgg+5LaSBCFWrvSrN y8yYnVb8v6/XqDqw40II3eE0SWnrwhXtLWlhcZQ+FTxKrzDUpkxkw8Pb5eJ4QGMum1B4 +K6g== X-Gm-Message-State: AOAM531FxXX0d3516xWg0mmOAw5EnMwyrhm8Mt7e1rkDWiWHvKmkhJWM O/LTQtx1eiymmvWtHa4fT9oHfivYVMR+reS2fM4+SA== X-Google-Smtp-Source: ABdhPJw0VpcxiMKE9J4E1HaDAZIicxCRM2/76Pv/x3jsKB9intn10ChCOX8l2qYEjSHKbPjqA4SCUqfRyiskNMNZkVg= X-Received: by 2002:a17:906:c20f:: with SMTP id d15mr5645063ejz.341.1603323404097; Wed, 21 Oct 2020 16:36:44 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jim Wilson Date: Wed, 21 Oct 2020 16:36:33 -0700 Message-ID: Subject: Re: Enable libgcc floating point emulation routines To: William Tambe Cc: gcc-help X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HTML_MESSAGE, 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 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Wed, 21 Oct 2020 23:36:46 -0000 On Wed, Oct 21, 2020 at 1:27 PM William Tambe via Gcc-help < gcc-help@gcc.gnu.org> 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 modes 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. Jim