From patchwork Wed Jul 4 23:47:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jessica Clarke X-Patchwork-Id: 939608 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-481022-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=jrtc27.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="ylxeAeUD"; dkim=pass (1024-bit key; unprotected) header.d=jrtc27.com header.i=@jrtc27.com header.b="Z1uOWHi4"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41Ld2R0m7rz9s29 for ; Thu, 5 Jul 2018 09:47:23 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; q=dns; s= default; b=y2bfYoNdRjRvyVk+0NVPrwUiJtd7O1vSr+gDg/i+Aq4ldx7aYy9Y/ MP3FgW6k/7Wr24l/5J3R5EoAEAGHpD5giFix4N77mWXPsE9cuO+j4HRMqmjKXsvK 0Xo/NmsgngX63WvFyjzlr2eLIyQsVakOqDA1VPKZ/S/gvywsFdJK7I= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:in-reply-to:references; s= default; bh=pea55KDMoDUXJWhLK+oJfeOzkM4=; b=ylxeAeUDRF2kE5fwxTMb 8aRFgrf5+IuceZOYSK5zd1u2gY2/+QfPIACVdEJMkQnduK1V7CGxj4VQIT5/4XFT SE5BFExqxNbatOQ4M38GPca5r8kKUln9pODOUeqcqCacbhzusDwRmAAXQqazmpma rsAqHspjhp83yXt+v9Eq5gs= Received: (qmail 119155 invoked by alias); 4 Jul 2018 23:47:14 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 119139 invoked by uid 89); 4 Jul 2018 23:47:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-spam-relays-external:209.85.221.67, H*RU:209.85.221.67 X-HELO: mail-wr1-f67.google.com Received: from mail-wr1-f67.google.com (HELO mail-wr1-f67.google.com) (209.85.221.67) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 04 Jul 2018 23:47:12 +0000 Received: by mail-wr1-f67.google.com with SMTP id h40-v6so124623wrh.2 for ; Wed, 04 Jul 2018 16:47:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jrtc27.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=gF03wPqtCUGhpMZ7LoEf1WyN8K3sUmodcBopqVtaaDc=; b=Z1uOWHi4w99ClJ1WdZ53FI8dPPYrauVus5kOlOuyMERPMsglszNmCT/Ssoky8k02l3 rTTOYmBNAAZ00GO1GQcyrobumHgwT2y3AcKjcL0TxWa5Lbw+Zl2zLNRHMA8PCUwTLsmL o6pi72ZVPQpH8932ikC4Jw64P0DZdLBKUTCqc= Received: from Jamess-MacBook.local (global-184-109.nat-1.net.cam.ac.uk. [131.111.184.109]) by smtp.gmail.com with ESMTPSA id z193-v6sm6785530wmc.14.2018.07.04.16.47.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jul 2018 16:47:09 -0700 (PDT) Received: by Jamess-MacBook.local (Postfix, from userid 501) id EB8A12026DCC65; Thu, 5 Jul 2018 00:47:08 +0100 (BST) From: James Clarke To: gcc-patches@gcc.gnu.org Cc: James Clarke Subject: [PATCH v2] Enable decimal float on x86_64 kFreeBSD and Hurd Date: Thu, 5 Jul 2018 00:47:00 +0100 Message-Id: <20180704234700.2884-1-jrtc27@jrtc27.com> In-Reply-To: <20180704212458.90010-1-jrtc27@jrtc27.com> References: <20180704212458.90010-1-jrtc27@jrtc27.com> config/ * dfp.m4 (enable_decimal_float): Enable for x86_64*-*-gnu* to catch x86_64 kFreeBSD and Hurd. gcc/ * configure: Regenerate. libdecnumber/ * configure: Regenerate. libgcc/ * configure: Regenerate. --- Hi, Apologies; I accidentally sent an older version of this to the list, so here's the correct version. Also, the motivation for this patch: Decimal float has been enabled on GNU/Hurd for a while, by adding the i?86*-*-gnu* pattern. However, this also matches i386 GNU/kFreeBSD triples, such as i386-unknown-kfreebsd-gnu, yet since there is not currently an x86_64 GNU/Hurd port there is no pattern for x86_64*-*-gnu*, and so x86_64 GNU/kFreeBSD also does not match anything. Thus, adding the x86_64 GNU/Hurd pattern both future-proofs the configure script for a time when such a sytem exists, as well as making x86_64 GNU/kFreeBSD match the behaviour of i386. Regards, James config/dfp.m4 | 2 +- gcc/configure | 2 +- libdecnumber/configure | 2 +- libgcc/configure | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) -- 2.17.0 diff --git a/config/dfp.m4 b/config/dfp.m4 index 5b29089cec5..a137ddebf8c 100644 --- a/config/dfp.m4 +++ b/config/dfp.m4 @@ -21,7 +21,7 @@ Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;; [ case $1 in powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ - i?86*-*-elfiamcu | i?86*-*-gnu* | \ + i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ i?86*-*-mingw* | x86_64*-*-mingw* | \ i?86*-*-cygwin* | x86_64*-*-cygwin*) enable_decimal_float=yes diff --git a/gcc/configure b/gcc/configure index 60d373982fd..35564942bbf 100755 --- a/gcc/configure +++ b/gcc/configure @@ -7458,7 +7458,7 @@ else case $target in powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ - i?86*-*-elfiamcu | i?86*-*-gnu* | \ + i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ i?86*-*-mingw* | x86_64*-*-mingw* | \ i?86*-*-cygwin* | x86_64*-*-cygwin*) enable_decimal_float=yes diff --git a/libdecnumber/configure b/libdecnumber/configure index 4cb732e80d4..b1588f4e884 100755 --- a/libdecnumber/configure +++ b/libdecnumber/configure @@ -4709,7 +4709,7 @@ else case $target in powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ - i?86*-*-elfiamcu | i?86*-*-gnu* | \ + i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ i?86*-*-mingw* | x86_64*-*-mingw* | \ i?86*-*-cygwin* | x86_64*-*-cygwin*) enable_decimal_float=yes diff --git a/libgcc/configure b/libgcc/configure index b2f3f870844..f395474beac 100644 --- a/libgcc/configure +++ b/libgcc/configure @@ -4647,7 +4647,7 @@ else case $host in powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ - i?86*-*-elfiamcu | i?86*-*-gnu* | \ + i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ i?86*-*-mingw* | x86_64*-*-mingw* | \ i?86*-*-cygwin* | x86_64*-*-cygwin*) enable_decimal_float=yes