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 Netto X-Patchwork-Id: 1937948 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=DO0AXylx; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4VkzmZ2pxpz20PS for ; Thu, 23 May 2024 04:07:42 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1AFA238654B4 for ; Wed, 22 May 2024 18:07:40 +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-Google-Smtp-Source: AGHT+IFEyaOyoP/fP/4hgmBz4xxvZK0FvmVo1QE49CLL36vE8MpsoGalj0Tz8SAi3OnUSm22hKE4cA== 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+incoming=patchwork.ozlabs.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