From patchwork Wed May 22 18:07:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 798173 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:92:b0:351:d90a:5487 with SMTP id m18csp599095wrx; Wed, 22 May 2024 11:07:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU9GjKVOEg0tnKfdeaI1ODUuvrXcG62TQ8dX4cqzwp2/aD20n0MsRTnhgdlE4ZJshmk59I4+iy2XBuhopa8sQMz X-Google-Smtp-Source: AGHT+IEAuDlrbA8j7whJjiUBlUt0qdIiBipSnSQ0j/7viBQC7A3zsA1flWQhNvXqWH6Eck9bWnOW X-Received: by 2002:a05:690c:6612:b0:61b:3402:805f with SMTP id 00721157ae682-627e468687cmr35753637b3.10.1716401255214; Wed, 22 May 2024 11:07:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716401255; cv=pass; d=google.com; s=arc-20160816; b=XppJE7pw2uDLBm8J47Q986WI4gCr9yKMWEaCDJJrQAEkDezPZIUGAgvPjXUab8eO1Y qjds2VTsdXfuMZyl4+Tairf18YDkmcdYPTtWgQYzfvGZQKKUFgBuoE+5r4cJsnlDWEAW 9SI5UQnJ9ULXtLw+cgRb9rCqpr0+FaMHmVdzR1BgI2zVEbsWxWe95L9VkJHjchWMBpp4 HtH+pZ3roymAELpWPOaKtB1q/l1CdP3pwxmpodaE713h1IvxuHZWXAsf3i81SuY9+fWo kvPiivZ6iIvBi9uXc0QVYapQwB0qHBEX1pc0W8FiV6u5yWPTZ55Kk7B/YMYDfQhdsOE1 KFJA== 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:message-id:date:subject:cc:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=w7isiW7TZmD12lZs6tXHfEWTUnSGy7w1DA7JHbdWudU=; fh=+6orIzRLXQY2FWXAtGF+abYflc8V+YPKzsYFuX0DJM4=; b=R5cyzy3RBtqouflhRwlvndyhZ4SWNLJnOCAxTCAXzSclo4tEOSekQyHF+pubPezmaQ ypKw0ksvjMZBVqRtj2e3qiTw2x8S8+5WSIE0MERj3N29P24nBo5lTBaOgU0Drys8Ettt 7iRDIaC3vhKV8U6sWxVwKOtJRcImWfG/r0XdEIbzai2HPbcBx5VtQr0auZlOn4xyimKy ucnNescJHGaK2+w4yWzp/Ibttsn0TlftDnLy4fxQ++LiXbfLjY8jK7jbXW+ueKxTadD5 W2q28zSUF5jvDbHqBeaIoyUatLzNJvIY8G3IvTk8AC6Gfwa8Nvn6Z5AITZS90Yfm7MEs MaZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=DO0AXylx; 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 6a1803df08f44-6a15f2ff63bsi309172756d6.530.2024.05.22.11.07.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 11:07:35 -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=DO0AXylx; 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 D2D7038654B0 for ; Wed, 22 May 2024 18:07:34 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) by sourceware.org (Postfix) with ESMTPS id 8A49E3858D26 for ; Wed, 22 May 2024 18:07:23 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8A49E3858D26 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 8A49E3858D26 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1033 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716401245; cv=none; b=uZC1gLIyMsM5W300Nn+4afLMxsOv3cotxqA6J7Kr6zm2u5lSlSa/n9P4KKg6pRIqd083aej9+jCqzWDgjfi9QUhU/Imzc+pzBWSQ0vbnROaDbKT55k01Or7FN2Wj7mJXJm8+t6yBx7eIMydOloxO/kSYrPWchwhaLOhfoJkV1V4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716401245; c=relaxed/simple; bh=HAJYLlHh9bFNi89jO265LFhUQIy5318fbTs3hb88iN4=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=QQbK1d1lSGBAUkPCzxn5GBI3BRKLo0RsB5z/jzC/LlT6K19faEVmJYAU+1s6cfrnwHwhMT+pmFxKw28hu0f2gjT4eIc+zSfAEkCCWp1328S3gwkwSY4+QjeOzjYg2J7chI9tIk07ALNM1xR1WR7UwqqO+CGHDuGKnlHX7zLDvtY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-2b2b42b5126so1529314a91.3 for ; Wed, 22 May 2024 11:07:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1716401242; x=1717006042; 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=w7isiW7TZmD12lZs6tXHfEWTUnSGy7w1DA7JHbdWudU=; b=DO0AXylx/WRZpOvREp+B+IufSysUdzRQeAlRZUYvxC0/k/fyfM4BzbmR590yv44F2o 6OB7zU5ST5F5W8gSGM3NBKau+595gxInpM7suSu63143H91d+D8SnJdyVPfya425+n1Y lRTF7AOHFz8x0ArC1DM5+eNoNzTEcC/K8TC9j6htQ4/kDTwZ6k9Le5E607eFMBmfv5eh lJJho89U2ZwLC/Eu5hCBccfNTIb+098TG0HW0sa95hGovEdfYTKkBYr2lrxLTS8fAp8Y rZDN0lZr56e2AwR5S74V1qAbLNa9cwc9AMwUuIchXePZHU5mGfKCU4zD+weptnij9rAJ +P0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716401242; x=1717006042; 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=w7isiW7TZmD12lZs6tXHfEWTUnSGy7w1DA7JHbdWudU=; b=b0/hMnW/YlBQq5+pOhRjovRtr1u/FOlb7MCgHZie7WE51be8qKvp6kd1/O8YuLrGsd YgmTOt5pOHuZ9x2xe9O4kTe6iYSmNumvY3qGIoAbNV/8lV1k5S32l7Z/yoafIGXriEcI VUlfNpI6Fs/qXYnJiM+ekU2Og9vE/u8zXPFXmg0Jknp/m2pDu1ikrtPil2SuWKULpvt2 Xtq5GC+FiCAXoZaH0fb0Y3HHDbZ/yuI/Qm4SjZ0Y6owbO1g7fwbta1zKO0yyxX+ZwyBt IDFJdCveD39XrgTHV4fmWeXcRo/0q+DXwaB+iUIOCEptRC3D1Sav7zrjQGauL3Eut9TC G57A== X-Gm-Message-State: AOJu0YygrSZUTocb71dNCbK709ZmJQLdHHkGlRsitY3btKxB55R9/s8I oFtm2F5FFeIKDV+E7jHPDaeOAyElVrjxPEbKHHnfB9fDztwHNoNZb1WPy41Z4y8rZQUCbJ/zK6y C X-Received: by 2002:a17:90a:9e4:b0:2b9:30b:1c18 with SMTP id 98e67ed59e1d1-2bd9f2d95f5mr3424268a91.0.1716401242013; Wed, 22 May 2024 11:07:22 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:7718:cb55:8353:f3c4:f762]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2bdd9f4dffcsm61435a91.38.2024.05.22.11.07.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 May 2024 11:07:21 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: "H . J . Lu" Subject: [PATCH v2] math: Provide missing math symbols on libc.a (BZ 31781) Date: Wed, 22 May 2024 15:07:12 -0300 Message-ID: <20240522180717.2180679-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+patch=linaro.org@sourceware.org The libc.a for alpha, s390, and sparcv9 does not provide copysignf64x, copysignf128, frexpf64x, frexpf128, modff64x, and modff128. Checked with a static build for the affected ABIs. Reviewed-by: H.J. Lu --- 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