From patchwork Tue Apr 2 14:06:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 785122 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp4954729wrt; Tue, 2 Apr 2024 07:11:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXfJ64xb8WmX9uXXoRCIw6hwCk/+BV+/ljWrjyCFrcy7e3JAL0ZaJFACYnUJgNLy+4jw8DnrVZivH5Q82Mi4xpI X-Google-Smtp-Source: AGHT+IE3HISOocw5tWyHbc6awAtSdxhUk79BWrRN9W+YBV0IokC7g8Me69Dv3pLcz+1mx7Jw53AL X-Received: by 2002:a05:622a:5cc:b0:431:3df8:30b1 with SMTP id d12-20020a05622a05cc00b004313df830b1mr16029910qtb.40.1712067064739; Tue, 02 Apr 2024 07:11:04 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712067064; cv=pass; d=google.com; s=arc-20160816; b=Xz5Eqc5RjNwRACaKhiVs5sgieHJa9bv8LiTF58eIc2QtrGnVe+0MtOhVrUlbHS0rjV yj6f+wzEg9GVf/H9iEHAQ7rTAwBBms2V9dj11kdbdG80b7JatiaBJGcP4957P7y7nuIj rDUaDnRH6VRIqqlq9Oywvf/LK2rmq7fYLuZfMk9CipQjhCKLM9c/bJYYzzInzs570lV1 o1SBNBA7G4bJZ53uHqHBM4G6QdRN+sh3G+04DNoxCO18tahcHICA5LFr4beQryoDQo7U 3ErqXoqtmSvEUAHuQ81Qwu5ALYVxtKLTh7eatMVmWYy+c946ipm4z6Mw8DB5oMaN87op gvig== 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=dfn5umIWnw6Uz8/uqjg6Vh5Bu5vFLeBK8pfxGFJPBsk=; fh=WtLnUd2EuDKv+EP3BSdEI8hdivapDDAq3MY9+WgWrlk=; b=s78uZ6DjrcaHhYG9DH//FBJu2QCvrzhKEO3kEsZ5hegKRCeWu+77PuTke86iEHkPmM gcJsdsVLBkVmplftVTduDZ28Vuevx1qydQMyXYSrH59PB8RmAmIdQeHfwAJ5/WVp3ATM KrZgN3hSwoyj+x69mZGvsxfJGp/9ZalnAP86VfWKqsUaRbM/FbIDhOcN06uc+0zuj44r w0QwOHzIykQk1nHElyrgbrN8DNssiHh5Zk85vtirK4dGedqs/wvLVqTJ3CT9NwHHsPv3 bySWPW4pG4SsdgnKDrP/hUbsZCTir6d0FiWW6qeF25fkTOCUzU2J4dzGaJTXmZjCxF/L 1LdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nwtpqSJq; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id b19-20020ac87fd3000000b004318498b1d3si12325454qtk.424.2024.04.02.07.11.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:11:04 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=nwtpqSJq; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 2620:52:3:1:0:246e:9693:128c 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 514893858425 for ; Tue, 2 Apr 2024 14:11:04 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id 44F493858425 for ; Tue, 2 Apr 2024 14:06:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 44F493858425 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 44F493858425 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62a ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066829; cv=none; b=A38Iov9Eq+d/HRlsyC3/LsmhQozVfN4JhSNlbPezI4ftCTWK21EN5tJ/+Q4sQCfpG3lfb2cb9miW0OgH6zlgwu81oC5j4zWYTS8Ies08vFQUTHFJyyatYNaTHROX26//lOcx7beqJ0QMQgZGVz/NZu+GgmFMhwun43Ir8bppLHA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066829; c=relaxed/simple; bh=00T0ga3DR/rHECajkAvkTQ/4jA9dyC898LF3mdH+USY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=vQSgFbkJ3jJjPJ1m5dHeUtQXFn2MUV+nzlKpZoR1aQnARO7TpX/Hc1ZSFs317xXxTaayEItu3QvQeCrF5Qi9j9pvQjcp+cTZJKWwgc8LeWUG4mPBS0tYHol0pQpVpxUX7V+B6uV/LwUua+KaOTYOdsAzWxREVQAomtZ2+sObyII= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1e27e174ccbso3089305ad.2 for ; Tue, 02 Apr 2024 07:06:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712066815; x=1712671615; 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=dfn5umIWnw6Uz8/uqjg6Vh5Bu5vFLeBK8pfxGFJPBsk=; b=nwtpqSJqd8p9W3K7i70Wc5huZGgc2JNtzTHnhzv657PeWVhX6GYwENWJfWGu2frwrQ IluPlMTe2IoIXfYNWVQz6vD6UMpOvRx6xbpjUIljn/OSGwSpg9ZvPOylhKXPlrKLhE1c czcfKE9KOXWmn5lC5shuuJo/LrjRTmmd6o87+K7PwndNFE+AJFEIRpKJr1XExod/cH04 3ghal3yM23gaZM39/Hqwc92GLU0dhYXNnBATa5C8xsz4QckEtqmHAg+AF1NmMrKiBuLb tcfDeogmWkNQqen8TxrsGq3bnDGeuYkxPQl2kWqETpxzeA1lwFg3X4+e5kTSfTrLiKvW 0/2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712066815; x=1712671615; 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=dfn5umIWnw6Uz8/uqjg6Vh5Bu5vFLeBK8pfxGFJPBsk=; b=gsZ286MCK1d8z2pkw6wvDFS/OI18gfctvSjC+2JmNHJbcVZMNq3MyUVVTpvXFsl5l8 30L6yACGL3oHY1LRH6YsLNw20J7zgIkWC9xFWELAmndD1qcCrXuW6d5wB50Xey1WW5lw yIWbVrXOWXOwNmIumy0gZ+OHT9p2kNQuUCDiTHGm0tHeGgiEnMfRv3Utgge3yMTW45KX YQEFQF2XGYLHpmmvWhXlKBpKiA70uwMErWGz2uYKjFRMHLvR24qYFyQ8Yvk/yVP4bWv+ 1Fd/lybW0bJzCj9p8QjNrwQtbDUJ07QK3foUiQV95bfuFnfrHzZjr6Sh08AoGusurEme 2aMA== X-Gm-Message-State: AOJu0YwupGvVEhujhvxwF+Y6UPNZjF5EzpISFPsZDevXEBJoL542Yj8d iNIBBsXuPK1exxSauO1sbx7tzNnIKqhrY81soMLllEvtvcdO50kCOJmcXI0joyX23QO6KtD0TnZ Y X-Received: by 2002:a17:902:d501:b0:1de:eddc:9f9a with SMTP id b1-20020a170902d50100b001deeddc9f9amr16565954plg.53.1712066815450; Tue, 02 Apr 2024 07:06:55 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:b18e:b217:420c:65ee:fc3e]) by smtp.gmail.com with ESMTPSA id b3-20020a170902d50300b001dcb654d1a5sm11078483plg.21.2024.04.02.07.06.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:06:54 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v3 3/7] math: Fix i386 and m68k exp10 on static build Date: Tue, 2 Apr 2024 11:06:40 -0300 Message-Id: <20240402140644.2172819-4-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> References: <20240402140644.2172819-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.4 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 with 'make test t=math/test-{float,double}-exp10-static build-math-static-tests=yes' Reviewed-by: Aurelien Jarno --- sysdeps/i386/fpu/w_exp10_compat.c | 9 +++++++-- sysdeps/m68k/m680x0/fpu/w_exp10_compat.c | 9 +++++++-- 2 files changed, 14 insertions(+), 4 deletions(-) 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