From patchwork Thu Mar 21 16:43:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 781585 Delivered-To: patch@linaro.org Received: by 2002:adf:cf01:0:b0:33e:7753:30bd with SMTP id o1csp927943wrj; Thu, 21 Mar 2024 09:44:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU2LIQVumKQDm272ZFjFf/i/Db+YlInFQP6SKezOuwFwYUS5+t7P8wOVjO+2K/HIKI1Ddk/2mv+gCDemMh8Elw1 X-Google-Smtp-Source: AGHT+IHJnszVYbi+LE75k9GRCkcuscLF+g7rZzuYWI7fq1MOEOS36fJvoxYqcaXLED1fJ3q+prvA X-Received: by 2002:a9d:7a8d:0:b0:6e4:df5d:f074 with SMTP id l13-20020a9d7a8d000000b006e4df5df074mr2445702otn.14.1711039455447; Thu, 21 Mar 2024 09:44:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711039455; cv=pass; d=google.com; s=arc-20160816; b=qDBAfE7LybEg/YyDJY5By1EwEJd+0eD1eI9gt4z7t9JsuvmLGDtGjXY/9cspMi+STp 46lz/jA8kKb8ElQpuRPMQWVo/L+MRYKbmhtxBIake3dEw634IifxArVMEoZL+1kGbopd EKubRNqjeY/bJbk6NwKsEOYVoL+WVIaPIA9SNHqWG2s36RPSg/QPrB12Cft0waK8npv8 86G1M9emXUsoh1jpGIIewhtgKTJuK03mIAart0dGn+2+2dyT8foE9XzA8680/YB9vImw jsWx47zk3SdBjSdnKgd0AZ/gGpBqhH5cUuSQYjYRO20HHO1UiIzBc1P8hXUpzKbhrKWa bJhg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=ldGWTj5wNhEbNrMUzXACqwvCJbDUonQwXMVVQbV75Gk=; fh=+6orIzRLXQY2FWXAtGF+abYflc8V+YPKzsYFuX0DJM4=; b=xOv4FVlO4bXtau52VIASe4BV10ku0o1REXjm6lj1+2auvimODzsy3NGaSGLvzsg2kR S2bYJ9sG+ltjz44QjerPaeFuM+FnwQBKPEJytPDhl7rvV36EUkegPCS+8GtpPb6ms0k3 pw1vrMujPDanVckQIyovsJgrZI56UxcroUoz4tlzLgp7B7ErzdKND0l4uYfvz+Y/mv1b GH+ZtwjeS3eORMEIg6EDFBg6siKK0v82Cb2o0ST9y7rPccHpgj0IWM/syOmWKgazDN1Y ytSMBRdIH2bkmiTOzR8S+wimVy0yAML7MPhKeysFjkFuclFIIty+x14NCRmk7cxvIPLQ o32A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b17HIu89; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id cz50-20020a05620a36f200b00789ed3aacdcsi76224qkb.239.2024.03.21.09.44.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 09:44:15 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=b17HIu89; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6467F3858282 for ; Thu, 21 Mar 2024 16:44:09 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62e.google.com (mail-pl1-x62e.google.com [IPv6:2607:f8b0:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id EE206385841F for ; Thu, 21 Mar 2024 16:43:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EE206385841F Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EE206385841F Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711039422; cv=none; b=xM5cpnDrQdnfnAqAGZkUFfdy2ZqPzD+EuIOGq36+aSssj0vBCdJijlGm5QG1drdngQnzx4E7e1rKkP3rkzOE0GdVVdUGW/e5IO9oIUcObjn1FaULPXM+EZFTxp5BskcycMegYgEg6IcdZtjkSRRr2I9GxvB5x5TuNzfWGY1b0hw= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711039422; c=relaxed/simple; bh=D5RkfMc+vM701YUxI3GyXr+K6rzdCFue+1AsrrvFWFQ=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=XZKUC4N/Faolc63cX6RfRJRrzJZ5Etn1EOSUrRxufqiLeS4un5ridv7n5UZYeot43hu3Qf/tWKBmfsGaQGLBmagByh//5MRQj/cej4XezlHmekQvb9yM7H7psUlwJhXyWMXSe4b1lEOlB5Hgn9ws2VtJM7JKvJOBA6h1TqZAdi0= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1e07cd7b798so4884375ad.2 for ; Thu, 21 Mar 2024 09:43:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711039418; x=1711644218; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ldGWTj5wNhEbNrMUzXACqwvCJbDUonQwXMVVQbV75Gk=; b=b17HIu89wA0trZCk+Vw/6h3DRfhiGkzyR93SAqZVJNUL6G5m9mQWzm4i9oBsrz+25I bHaBNatUOiZEwJK9Yxp+TQypF0y0ioKRgwZ7wSOOxZWMPq/bzlCxRs8Xdgc+/Q6VXWfU 2Kf51ZUqOLM0dYsZUqQnYICr0RNk7czSX+8wHtfj5/75pswqGdbUIKpuGpjpZsJyCtwq hxDPzU5xfu58QmGrD3waiurCHoOjn3F8wFBP4OtVHDxrtlS104/Ehe9e5j4oLitWDu2j DkSu2d+hlQkgcLjzm/TZacDocHnMWhPpkwc1hjQ8OfQHWQrThzO5LwlssUz8zBv0LuQU VjZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711039418; x=1711644218; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ldGWTj5wNhEbNrMUzXACqwvCJbDUonQwXMVVQbV75Gk=; b=YRNPvbH14Nw8n0VY8P9O8bueq4ff43YxiUBXwu74oeBfsK/K6eYKSqANYKrBYL8yl2 SryNMdavhHNtwgQpUcqUSZHftBJZD0hR4l6GozWkJY6dx2p4M91GrlJvmxXW4loDh5BL JSgV2cdvdhz1S8HBe/8w1kyO8EE/TKfbRphrZm5yUm/zPg65epdfJwsj8cuZTFTFZImx bsvKDhBS0YxFNsWTyFa/iO3oeI3b8867xmAi6xNFS5PYhe6sX+HBCPk5h5iv/C9XIyEP zani7wn+n4iGrOMHAZrFoPHL8OHj1UQhbOnJMi0ltTRYV6mqqh6hHNoWsHIAKci/BNkZ qmvQ== X-Gm-Message-State: AOJu0YwlGXqc0Btxm4h2+HZqVLTEOcic4VmJU7oWOjtXp6u1wQEytG5U Xi2i5+wGDhvrMvPqPDbwAuURYlH4FGA5LzPyFui0y3kRIlUEG4qd12LsTVX8NLl+zORyEVQlMaK S X-Received: by 2002:a17:902:dacf:b0:1e0:26ac:8234 with SMTP id q15-20020a170902dacf00b001e026ac8234mr3205139plx.18.1711039418537; Thu, 21 Mar 2024 09:43:38 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:1d04:42cc:aea4:27d6:375f]) by smtp.gmail.com with ESMTPSA id q1-20020a170902bd8100b001dd75d4b408sm18074pls.302.2024.03.21.09.43.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 09:43:37 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "H . J . Lu" Subject: [PATCH v2 5/6] math: Fix i386 and m68k exp10 on static build Date: Thu, 21 Mar 2024 13:43:24 -0300 Message-Id: <20240321164325.539976-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240321164325.539976-1-adhemerval.zanella@linaro.org> References: <20240321164325.539976-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+patch=linaro.org@sourceware.org The commit 08ddd26814 removed the static exp10 on i386 and m68k with and empty w_exp10.c (required for the ABIs that uses the newly implementation). This patch fixes by adding the required symbols on the arch-specific w_exp{f}_compat.c implementation. Checked on i686-linux-gnu and with a build for m68k-linux-gnu. --- math/Makefile | 4 +++- sysdeps/i386/fpu/w_exp10_compat.c | 9 +++++++-- sysdeps/m68k/m680x0/fpu/w_exp10_compat.c | 9 +++++++-- 3 files changed, 17 insertions(+), 5 deletions(-) diff --git a/math/Makefile b/math/Makefile index fbb2987248..ad7fd25995 100644 --- a/math/Makefile +++ b/math/Makefile @@ -367,7 +367,9 @@ $(libm-test-c-narrow-obj): $(objpfx)libm-test%.c: libm-test%.inc \ $(PYTHON) gen-libm-test.py -c $< -a auto-libm-test-out$* -C $@ -libm-test-funcs-auto-static = +libm-test-funcs-auto-static = \ + exp10 \ + # libm-test-funcs-auto-static libm-test-funcs-noauto-static = \ fmod \ # libm-test-funcs-noauto-static diff --git a/sysdeps/i386/fpu/w_exp10_compat.c b/sysdeps/i386/fpu/w_exp10_compat.c index b53455386e..49a0e03385 100644 --- a/sysdeps/i386/fpu/w_exp10_compat.c +++ b/sysdeps/i386/fpu/w_exp10_compat.c @@ -1,3 +1,8 @@ /* i386 provides an optimized __ieee754_exp10. */ -#define NO_COMPAT_NEEDED 1 -#include +#ifdef SHARED +# define NO_COMPAT_NEEDED 1 +# include +#else +# include +# include +#endif diff --git a/sysdeps/m68k/m680x0/fpu/w_exp10_compat.c b/sysdeps/m68k/m680x0/fpu/w_exp10_compat.c index 0d3e718626..350f2e4b4d 100644 --- a/sysdeps/m68k/m680x0/fpu/w_exp10_compat.c +++ b/sysdeps/m68k/m680x0/fpu/w_exp10_compat.c @@ -1,3 +1,8 @@ /* m68k provides an optimized __ieee754_exp10. */ -#define NO_COMPAT_NEEDED 1 -#include +#ifdef SHARED +# define NO_COMPAT_NEEDED 1 +# include +#else +# include +# include +#endif