From patchwork Sun Mar 20 12:07:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Piotr Kubaj X-Patchwork-Id: 52150 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id EB3473858C74 for ; Sun, 20 Mar 2022 12:07:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail.anongoth.pl (mail.anongoth.pl [46.248.190.61]) by sourceware.org (Postfix) with ESMTPS id 2019C3858C74 for ; Sun, 20 Mar 2022 12:07:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2019C3858C74 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=freebsd.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=freebsd.org Received: from anongoth.pl (unknown [192.168.1.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: pkubaj@anongoth.pl) by mail.anongoth.pl (Postfix) with ESMTPSA id 1E23912A479; Sun, 20 Mar 2022 13:07:17 +0100 (CET) Date: Sun, 20 Mar 2022 13:07:15 +0100 From: Piotr Kubaj To: David Edelsohn , Segher Boessenkool Subject: [PATCH] fortran: use fpu-glibc on powerpc*-unknown-freebsd Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-12.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_NONE, SPF_SOFTFAIL, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gcc-patches@gcc.gnu.org Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" fpu-glibc name is a bit incorrect, since it also works on other systems. I have verified that it builds and can also build other packages correctly (that were failing before). From 0feb83fae30070cf250781449670638d7addd947 Mon Sep 17 00:00:00 2001 From: Piotr Kubaj Date: Sun, 20 Mar 2022 13:03:13 +0100 Subject: [PATCH] fortran: on powerpc*-unknown-freebsd*, also use fpu-glibc It builds fine and correctly bulds packages on FreeBSD. It looks like "fpu-glibc" name is a bit misleading since it also works on FreeBSD. Signed-off-by: Piotr Kubaj --- libgfortran/configure.host | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libgfortran/configure.host b/libgfortran/configure.host index 3d6c2db7772..0f8bc7e0459 100644 --- a/libgfortran/configure.host +++ b/libgfortran/configure.host @@ -61,6 +61,14 @@ case "${host_cpu}" in ieee_support='yes' ;; esac + ;; + powerpc*) + case "${host_os}" in + freebsd*) + fpu_host='fpu-glibc' + ieee_support='yes' + ;; + esac esac -- 2.35.1