From patchwork Wed May 22 12:17:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1937829 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=WKOqLJBM; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Vkr0z5p5jz2020 for ; Wed, 22 May 2024 22:17:55 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E643538654B4 for ; Wed, 22 May 2024 12:17:53 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) by sourceware.org (Postfix) with ESMTPS id 6A00D3858D26 for ; Wed, 22 May 2024 12:17:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6A00D3858D26 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 6A00D3858D26 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::535 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716380257; cv=none; b=XXKIZHRKtYadaGmmunG09sIuhoVXD0FPyCVmppErYKTmBH7MGHx/b4ppWCe/6hO9nN+Rhmpw6GOgNUrBD7KL4tEyKBrGsYckd/CotbkcAoNeCjXsFH3OrO7jx3GBUE9D76JAZnQk2+dGDIk0uLmsGjFoXySkNMgcj+VvbRmAdjA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716380257; c=relaxed/simple; bh=h3tsuhWdBclcdT7xrhupKBeTxfu/9Qc7uClgp5/7Z20=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=SgbqEJTnoYwbL8G9ML2SCZwXNDPGchPrfRDWilSoJ7W9YT+43LadD+1XvzybK5mwifTIbfZpbRyj4R43ntUMjVdVr5lF8HEEI0q96hhwUBrHzz/ywYAuos9fnktQHwCbzE/dy5dfC3ia+QHlw1HfnnhHdsCbRXBWqPvIZOvkW4I= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x535.google.com with SMTP id 41be03b00d2f7-53fa455cd94so2170454a12.2 for ; Wed, 22 May 2024 05:17:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716380245; x=1716985045; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=I4BzWpAwZ4sHcZBiIPphO/clcFclHyU2wusxO/XlVRU=; b=WKOqLJBMy4SNazr/Iky8SwE9pXrBShr/stSjYdVfUikOIjVOTnTBE87SfC8FE4XjKx YqxABpYezYZSEfDpQFVnV1qxsB7eUUJjT+6xaVcXNebn6ZBMV5baxkFeKRT6FWAosFf6 S0+ABXCgfhHSWNVyA6E1kWasK9a0ktSa55XR4zE3aAFwrQ//+DHp5lH2J93GUUM+9VAR 9STXbJ6gTY1/wYtpV3HHgAEWy6Ovc/yOxJXRYd5brVs7OIOm2xHENFi/6rPFP/6oOKmD WFTcooKRlh6YiGKL2emTcM7FueelVto+ZJyWG/xxj1khKpFzyQI/j60OnrOGSPb8/4wP 7Frw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716380245; x=1716985045; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=I4BzWpAwZ4sHcZBiIPphO/clcFclHyU2wusxO/XlVRU=; b=nLDYAAUBbAaiflP90P2J3YO9ZryDmTQuzeQDsj5arVqSPt9WjQagFNLVq0p9rbUzgX gWrHZg0wFNYioEV/tiwhMFl0+aJx4bK6UfIba/4oSjiJYdgcd5QiMX7GTom38JZSfrWA NYNm3fuVglSUI0g8ohBZ5PZ9ns50tofNWXP8U2vv30xkKrTHzkytGfPkLSBLHxbZOWN0 CfYR2xzH3XGwNm+Zwwq3qcEIHJ1cQbsDNsY5GXUAS/I9quyyaMxzUbnxqGo14RjTXiPF 7MVBDbFMOcZdLoDj/MMOJfFt29kCaYIr/LVMMAM808dqd5eHoWK6HOFxqMlDfPvKtoue f0oQ== X-Gm-Message-State: AOJu0YxZx+nnH/cFTw7mHhy9LQggL5C0xubcOVQOKup84GlehCy1E5SS 8VS1tjsgp1NbAVBG3l+z8w24UG1kKVLlIqcY9CoYFg4h8ZGxi/UMKJSdrru0utE+8k2Ewsn4goK 9BTA= X-Google-Smtp-Source: AGHT+IEHvQ26F1c2ALmo2raEaglh7DHimnisDkfC+G2qU1QipwNd902Cc8as/sDgvwwlvOistxXoNQ== X-Received: by 2002:a17:90a:5b0b:b0:2b4:3a1e:2400 with SMTP id 98e67ed59e1d1-2bd9f4652ffmr1972552a91.18.1716380245504; Wed, 22 May 2024 05:17:25 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:7718:cb55:8353:f3c4:f762]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2bd76729d74sm5968159a91.35.2024.05.22.05.17.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 05:17:25 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "H . J . Lu" Subject: [PATCH] math: Provided missing math symbols on libm.a (BZ 31781) Date: Wed, 22 May 2024 09:17:06 -0300 Message-ID: <20240522121721.3477938-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.8 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+incoming=patchwork.ozlabs.org@sourceware.org The libm.a for alpha, s390, and sparcv9 does not provide copysignf128, frexpf128, modff128, and scalbnf128. Checked with a static build for the affected ABIs. --- sysdeps/ieee754/ldbl-64-128/s_copysignl.c | 4 ++-- sysdeps/ieee754/ldbl-64-128/s_frexpl.c | 4 ++-- sysdeps/ieee754/ldbl-64-128/s_modfl.c | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/sysdeps/ieee754/ldbl-64-128/s_copysignl.c b/sysdeps/ieee754/ldbl-64-128/s_copysignl.c index 11b42d04ba..80137847d3 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_copysignl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_copysignl.c @@ -1,10 +1,10 @@ #include #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED # undef libm_alias_ldouble # define libm_alias_ldouble(from, to) #endif #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED long_double_symbol (libc, __copysignl, copysignl); #endif diff --git a/sysdeps/ieee754/ldbl-64-128/s_frexpl.c b/sysdeps/ieee754/ldbl-64-128/s_frexpl.c index 73ac41e40c..f5f7d349f7 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_frexpl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_frexpl.c @@ -1,10 +1,10 @@ #include #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED # undef libm_alias_ldouble # define libm_alias_ldouble(from, to) #endif #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED long_double_symbol (libc, __frexpl, frexpl); #endif diff --git a/sysdeps/ieee754/ldbl-64-128/s_modfl.c b/sysdeps/ieee754/ldbl-64-128/s_modfl.c index 7d7aeae111..ba3d31334a 100644 --- a/sysdeps/ieee754/ldbl-64-128/s_modfl.c +++ b/sysdeps/ieee754/ldbl-64-128/s_modfl.c @@ -1,10 +1,10 @@ #include #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED # undef libm_alias_ldouble # define libm_alias_ldouble(from, to) #endif #include -#if IS_IN (libc) +#if IS_IN (libc) && defined SHARED long_double_symbol (libc, __modfl, modfl); #endif