From patchwork Thu Mar 5 14:01:04 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1249600 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-110307-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=rrjP/d4G; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=mZmu1qhW; 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 48YC8m3MHpz9sPK for ; Fri, 6 Mar 2020 01:01:28 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=xokndg0WuTlKDy8BWf1TzMTieaI03HVkiSX/1Rt+MbpVsKIbMIAwm CcD+61dTL8w7n2r3k8xa2mwTSL6ihBjJyVmZxSVjPTxKi5VPtzwCEDhuw9PfI5i7 +mrquvAtbWxA0tg/wn5n5RRFsC4N+w04CYjf9tj/K6wmr8+AfMBL+8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; s=default; bh=1e2Mdl6Gy2bhjQptzliqIr/jL9I=; b=rrjP/d4G/y+1i9ZT7N6HXwR/1y+k PjPvxn7hzlseJuLXHzvFncifg9WBBK7k2Frzq/HGyem7yHkZK0PdSOznPtrKzhLW 3fPSltJ0doq8IyJLPAK/yJfHDPtQM/lwBJJdbFeYrteXBJSMGbFXIbv9vTLA3hmH U4ywlKFx+ZpLiLA= Received: (qmail 74843 invoked by alias); 5 Mar 2020 14:01:16 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 74583 invoked by uid 89); 5 Mar 2020 14:01:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-qk1-f174.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=vR0Ng334AQ2ewhdeLej2PFJINlCSe2xSE9KXJX2Vw+0=; b=mZmu1qhW/+ImJadSys6Li+22eOnoBtXB9GsHwA4BZPA70ic3URIXIKXmJ2mtoPm+cW wscL67VEPMMeFmyhbGqUFQcoYlWLxQQq+lKGebLNaVxHCG7KSXAa8TOrrjIxfj5YV8Od VrElWzqdaAh5teQ5xXcyt8BUERrJN3lMDJxfeNmvA5kzt0LBi7OQiYVmCUQJaVIFAd7x DEQurmWHwM8KX2ME2g2nDkR4CXdJAAMLEqCJabI3PKWke+9dJAHXebrxArQ3mayJtEbo OBwRbwXE3R6F6AbILvLXGkqsSistnTwHb5uqEZD+9vqXDGTiRHFPbSPlm8fh8wU4/OrI AE2A== From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v2 1/2] Remove reference of --without-fp on configure Date: Thu, 5 Mar 2020 11:01:04 -0300 Message-Id: <20200305140105.22734-1-adhemerval.zanella@linaro.org> --- configure | 3 ++- configure.ac | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index b959d2d988..d0ac26e97e 100755 --- a/configure +++ b/configure @@ -4224,7 +4224,8 @@ mach= tail=$machine${submachine:+/$submachine} while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do set $m - # Prepend the machine's FPU directory unless --without-fp. + # Prepend the machine's FPU directory unless the architecture specific + # preconfigure disables it. if test "$libc_cv_with_fp" = yes; then maybe_fpu=/fpu else diff --git a/configure.ac b/configure.ac index 49b900c1ed..325bd6d4d3 100644 --- a/configure.ac +++ b/configure.ac @@ -809,7 +809,8 @@ mach= tail=$machine${submachine:+/$submachine} while m=`echo $tail | sed 's@^\(.*\)/\([^/]*\)$@& \1@'`; test -n "$m"; do set $m - # Prepend the machine's FPU directory unless --without-fp. + # Prepend the machine's FPU directory unless the architecture specific + # preconfigure disables it. if test "$libc_cv_with_fp" = yes; then maybe_fpu=/fpu else From patchwork Thu Mar 5 14:01:05 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1249601 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-110308-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha1 header.s=default header.b=lk9beo+d; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=b9zPSYyQ; 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 48YC8v36jtz9sPK for ; Fri, 6 Mar 2020 01:01:35 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; q=dns; s=default; b=jliSCE0xL2UMIkV34c8il6R9YsG3S+d 3040nFnxsI0AL6uovPqFJ56HfooeOa+5C/QEM4h+E1J0UCI7nQd8DjFLYyoR5HlF XrHTZezwdJDeXFXmYYRf3OTu98xWF/lP4/yaULOZyLdyQJ7sBrMyXCpe+iNG0nRO rmGIpGZw8Ka4= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:in-reply-to :references; s=default; bh=Z5sPnjEYwm38einc/J7Xx/rbrS4=; b=lk9be o+dk+edhFMZHpnKajx5bGk0T6UP5lcjBql8EVpbTmCHI+/q+5enn6MD3Z2IsicVD PEsNQI2mtsOcazr9HtegaE7JK24dvuBVncpE00eB+927h5/AoP2TMIo4Fdc9xM7t MS1zq6+4Ji17mE/uTDpoL9W3KBrmojZP/0jLH4= Received: (qmail 76323 invoked by alias); 5 Mar 2020 14:01:27 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 75057 invoked by uid 89); 5 Mar 2020 14:01:18 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-22.3 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS autolearn=ham version=3.3.1 spammy= X-HELO: mail-qk1-f193.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references; bh=wey0csPxmJBrSwm8ExPnmgRut4jgQ88OC24DDIRNyww=; b=b9zPSYyQgHgj9qhWbe8kTLRxhwqt2TyO5eeU8r4Ad+OyTjRIYKPOEokH9Oa7ULkvd+ 4tymbaZsyDHqZqEB5dhOGwop+1hvHMSzuF9fqUZEIsGq2x4wO4Y6XxkyuhHygy2tO1Vr jsdDck31XThmLNkc7FDVUivl8NjtKER2rwKWq5fMGkU30h6WSxhiQ6ZL0HAk/0nD6khA GU8JMMBj+g6dJbhowJWdNwZqOQpfczdUYJVcOxsWpTVPUYfYRXKFr37ZiRx1jU0wo9gk SfyR3rrhOSdYX0ukObn8dTDU1LsNBQd/99QxwojVDUQLJmKa284jUEQXC6oqCXuEdb3W HFuQ== From: Adhemerval Zanella To: libc-alpha@sourceware.org Subject: [PATCH v2 2/2] arm: Fix softp-fp Implies (BZ #25635) Date: Thu, 5 Mar 2020 11:01:05 -0300 Message-Id: <20200305140105.22734-2-adhemerval.zanella@linaro.org> In-Reply-To: <20200305140105.22734-1-adhemerval.zanella@linaro.org> References: <20200305140105.22734-1-adhemerval.zanella@linaro.org> Changes from previous version: - Remove wrong --without-fp mention. - Change the order on generic sysdep Implies instead of Linux one. --- The commit "arm: Split BE/LE abilist" (1673ba87fefe019c834c09d33673d1d453ea698d) changed the soft-fp order for ARM selection when __SOFTFP__ is defined by the compiler. On 2.31 the sysdeps order is: 2.31 sysdeps/unix/sysv/linux/arm sysdeps/arm/nptl sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/arm sysdeps/unix sysdeps/posix sysdeps/arm/nofpu sysdeps/ieee754/soft-fp sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic While on master is: sysdeps/unix/sysv/linux/arm/le sysdeps/unix/sysv/linux/arm sysdeps/arm/nptl sysdeps/unix/sysv/linux sysdeps/nptl sysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/arm sysdeps/unix sysdeps/posix sysdeps/arm/le sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/arm/nofpu sysdeps/ieee754/soft-fp sysdeps/ieee754 sysdeps/generic It make the build select some routines (fadd, fdiv, fmul, fsub, and fma) on ieee754/flt-32 and ieee754/dbl-64 that requires fenv support to be correctly rounded which in turns lead to math failures since the __SOFTFP__ does not have fenv support. With this patch the order is now: sysdeps/unix/sysv/linux/arm/le sysdeps/unix/sysv/linux/arm sysdeps/arm/nptl sysdeps/unix/sysv/linux sysdeps/nptlsysdeps/pthread sysdeps/gnu sysdeps/unix/inet sysdeps/unix/sysv sysdeps/unix/arm sysdeps/unix sysdeps/posix sysdeps/arm/le/nofpu sysdeps/arm/nofpu sysdeps/ieee754/soft-fp sysdeps/arm/le sysdeps/arm sysdeps/wordsize-32 sysdeps/ieee754/flt-32 sysdeps/ieee754/dbl-64 sysdeps/ieee754 sysdeps/generic Checked on arm-linux-gnuaebi. --- sysdeps/arm/be/nofpu/Implies | 1 + sysdeps/arm/le/nofpu/Implies | 1 + 2 files changed, 2 insertions(+) create mode 100644 sysdeps/arm/be/nofpu/Implies create mode 100644 sysdeps/arm/le/nofpu/Implies diff --git a/sysdeps/arm/be/nofpu/Implies b/sysdeps/arm/be/nofpu/Implies new file mode 100644 index 0000000000..c90dd7fd5c --- /dev/null +++ b/sysdeps/arm/be/nofpu/Implies @@ -0,0 +1 @@ +arm/nofpu diff --git a/sysdeps/arm/le/nofpu/Implies b/sysdeps/arm/le/nofpu/Implies new file mode 100644 index 0000000000..c90dd7fd5c --- /dev/null +++ b/sysdeps/arm/le/nofpu/Implies @@ -0,0 +1 @@ +arm/nofpu