From patchwork Wed Mar 27 16:45:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 783137 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp2300112wrt; Wed, 27 Mar 2024 09:47:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWHJPxN8eX6odmCbBNMLltjtWapUbRi8r3j/ySFxWEIYKWbmKwCOUvn2c29ckyF7/R3fF3sR6na/B8eRKNLWjY/ X-Google-Smtp-Source: AGHT+IF6WmKXZmIc1w5ELM36cXKsV6cqUOzn0YsQEFRfs7XL6J+bvU00uIwoo3VzAl6YqRz61Vxe X-Received: by 2002:ad4:544c:0:b0:696:8505:1944 with SMTP id h12-20020ad4544c000000b0069685051944mr73946qvt.29.1711558023702; Wed, 27 Mar 2024 09:47:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711558023; cv=pass; d=google.com; s=arc-20160816; b=s02/uncMycHpYTaLtlNNaPnP1bzT4dqU/y8N46+KZ1X6NeafAoL5DVqNtRbsf4l1Ku 7PchHUoQDs5kdAhWNn3bvECA/g9B9guQqL995ty8COS/7RmoDUkpa3P5nE2ipEsIji9Q 8uB6bpn3uWa+PDi5BydDq7UPXQWYgXFGhDqx+cUrHqudWOfkKsyx5VdU9trLAat6phst AqE8FuIonLtKOeJAcCBd+G+OOT1Iu8QUDG/K67OLppGVATr9JmoRWwKcnfPdREJ4wI2m 1WfJ7x3ccaqDp6OJ3/S5uvzjBBFnQt5U/wn8TMcgRp07V9/SqeAY0Z53evE4DTw4pzf6 FKTg== 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=DnjP5zBH6db4XAECtZPSD0FlQ9mZafYAi0YvzhHcxqE=; fh=WtLnUd2EuDKv+EP3BSdEI8hdivapDDAq3MY9+WgWrlk=; b=yrXbLbVAdweLXfOZTwkVG5rjdwUPsbDUWyr1WfSvlbpna0Rg9tdybrD7EKGoj8Ze0D 6kqTmpoDTPw/N+SOnWkbGKv4DNLJVDqgGh1D6dj8rF7X6we8P8ciSPqMlXbZ6aPsQULU DWknL4yvsPXMJ8DNTZ1vgNTVS8yN0zAy+Qw+JeErxQCsCIWSg521M5qhNOKy3AhMBhX8 +pk0MeehCGDK4uhqeKsmuMoVh4vG+rrKtbdEFjW6PqULrfNcDnlKVlGv+uJfAZjs54WQ zhHD7pW8z/XXDxcLCQpJgr7YwP6Z5736TfzAjK/nH4KwJrbwWUQuxkWXi1Q2/0wrlTLk SX8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eoggeu2p; 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 k14-20020ad45bee000000b00696b0e4b287si1064012qvc.477.2024.03.27.09.47.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 09:47:03 -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=eoggeu2p; 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 3775E385843B for ; Wed, 27 Mar 2024 16:47:03 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by sourceware.org (Postfix) with ESMTPS id ADD41385DC06 for ; Wed, 27 Mar 2024 16:45:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org ADD41385DC06 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 ADD41385DC06 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::635 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711557947; cv=none; b=vYt8G43EPQTEuKXz/o7AlbQabfGtE0s3Yv15XEpRoV4ihve4+PVbzkJhuJzquokeqaT+xejPI9s1FVEtyaiUV1l2XifNdKT8PHMB2NsC+6NVk8Sn3K6onUTjoHYIv4KZSZlDoNE27bI7EIl9YQQVNBe8Yu5Gufk7jesiepnWruo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711557947; c=relaxed/simple; bh=wHbvmdicYImSDZMFciUEE4a81Gu6In5X3H4kMS5X25o=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=A343zw8oKPZScG4VA72PisO7LK3oVMNv+JN880Zgrmkvb9GhWggIDZZjIKIMRblKmxeuZGQjIHu5ws/KMozWt5QKnSF0aoiZA4kT4F+s9nCXxcG91R5GmbVmE8Q/x5kfSuhKEy7lfqNOOXjLNgwUN8y8Rk6XGFzXh3YFphQ3A9Q= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1e0f0398553so219435ad.3 for ; Wed, 27 Mar 2024 09:45:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711557943; x=1712162743; 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=DnjP5zBH6db4XAECtZPSD0FlQ9mZafYAi0YvzhHcxqE=; b=eoggeu2pajrwq6XsMiZTIqfjXbqlbNWI3Ku3COc9xFVprjc6iHcXxoMXINMChRMPhH PFIfSCwyjP7KhKIFdWwzciLwxMk//tcv5yqutLp1dHYPjNyuyzmcD/KYFqLpTi4FXn5G Y8kj5ySHonOT7Txn9Noq17M49ti3ivp9t7L75eVkMUnY3lX3w11nRkmhUcIvv+RxMV0w yQDShGb3HHdBaxCk7oqXSxV1xRxs25ytv9wvMs14Eh4qLeNztyZUqvjMVK3xhCl+bSTy ybh4Yz6sbsTkLg7NQDw114yqHdVPRi/D3clDU1ciUrR5kZttaMQtEJztayldRSusU0fo 4/Ag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711557943; x=1712162743; 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=DnjP5zBH6db4XAECtZPSD0FlQ9mZafYAi0YvzhHcxqE=; b=gcg08ZILpvYV4h44MU5CXByx0zGrimA0okLJ7di0qVQ4Oz/gLJoCYBVKFZaLKytSMJ Pts6sMiSkRNDi8DigY3YVX0OGp00WxdybSFM1wRNUhSO1xUVBhPN0NP8zrZKttEQvEnK wl9SfPn9J0QUtdBLUIKTC7g0KwpIAfJE/zUJxFW8uYW7OZaXXeCubfxT68AkHrvY7QG0 3FeYUNQs14FiJw4fxJJ6EAruNEcOTiFdXx9/QSJYyfTP8s1wTJlfnQd3s0d5nBgmjVk/ uqbViKKlboBkP9Q+SfGLl2+nabc30YqChzsiu8iead6Fhq3jJ8yE4NzR4O26N6tQ89BP LHsw== X-Gm-Message-State: AOJu0Yxpd6ZTeBiUzV5e95aLSWkQ/gNoQNDqtQrXCEwW3wz59x6YVdMh eUJiFDZHZVHIiiXKmOz1EDb1Fx3BQ/0p5hcST0jNfWJE/02wU0511An5N5FIyHN6zk7c1E4nOHN O X-Received: by 2002:a17:903:32c9:b0:1e1:a74:5531 with SMTP id i9-20020a17090332c900b001e10a745531mr293798plr.36.1711557943264; Wed, 27 Mar 2024 09:45:43 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:b18e:67c4:6248:3d8a:f386]) by smtp.gmail.com with ESMTPSA id c4-20020a170903234400b001e20578b524sm858593plh.252.2024.03.27.09.45.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 09:45:42 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH 05/15] math: Fix i386 and m68k exp10 on static build Date: Wed, 27 Mar 2024 13:45:17 -0300 Message-Id: <20240327164527.3717523-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240327164527.3717523-1-adhemerval.zanella@linaro.org> References: <20240327164527.3717523-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.6 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 an 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 964bf2be71..f1d210797d 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