From patchwork Wed Mar 27 19:40:21 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: 783157 Delivered-To: patch@linaro.org Received: by 2002:a5d:4e01:0:b0:33e:7753:30bd with SMTP id p1csp2375334wrt; Wed, 27 Mar 2024 12:42:39 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVGubWSXt0GURQ5b5w6BwbcbQ3baRSlsPfJKhfRxBaBnR0Mp28Rcpk957nyWjEKrh/aa04CNvgZu1dFm4IS+Rh/ X-Google-Smtp-Source: AGHT+IFC5vay4Ou/WbovbUnTVUe2f4YfoCqg277lUH0J8gKQTMc9Lq94H4IFCQ75OCyGC5klAkl3 X-Received: by 2002:a05:622a:1002:b0:431:7c76:2cd with SMTP id d2-20020a05622a100200b004317c7602cdmr456687qte.31.1711568559710; Wed, 27 Mar 2024 12:42:39 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711568559; cv=pass; d=google.com; s=arc-20160816; b=s2fTU6qVqNmlL/SqizSoPj3qdOZEyumqysYuZr08Y4+xDTHjcYqCqWdwuKaNNtiOz2 34Vbcb2fv+785Xh0fSgoEQM/OU4of9rJjJZzlpnwn2IRBi4TRP3u0HDSGmEXpCJCgTcJ bgH180jN8mdhoK66cUUTwg7oVsJUDcfaj6/b1R6xTQ8SwsX9ry6/58O3ElXusy4Z/IcS RPbpouOO43WNcoXKbVIlPibPH9UZSpTMzX+7n5s0Q2PsGzZNAUzG9BW+q7gbMkZGBRNF 1u8kY2Nf7UjPH9gQuDwnTZiBjkokO9dkTc7uNNm8RsIpDP4XWVuO2CrDS28vvUV2iApV UWdw== 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=b/uJsYX5TjTzzmu5D77iSjXX+egw1x7sUXQBSMn9NVQ=; fh=WtLnUd2EuDKv+EP3BSdEI8hdivapDDAq3MY9+WgWrlk=; b=jcHe4eqHmugCBgVShmKlsaLBkJtJ7FKjWBoLE04ps2XXhjEehb/d/xn/KZ137Xt7/A lqrqavIrAAkgV2juX3KlCWcK4V6BomHd3UVPRSjXCgvnRRlFYfEVcRWndsiH+FqEC5Ya LLVNC4rGvuKguHBk2h3p0RSNm+S1smSUSNy+wJzCS/IJzU7JuWLO6J6s1RRFqbpvn47T 2Yg2Wb4n1ZbukjVc0SQ6yDuhkxxAAEeojKZghVv1Us1e/Sc5bc32BIxLKU3sz6e0wdyk nCTaRlEBhuIMXQ7rBzkrfMnffoKscuAmdnPeoWpLyfu5xNMJj5t8MCf6GaAASm8Ux5gj sBYA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZFTOjJEo; 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 gd27-20020a05622a5c1b00b004312638637csi2389010qtb.504.2024.03.27.12.42.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 12:42:39 -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=ZFTOjJEo; 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 51940385EC57 for ; Wed, 27 Mar 2024 19:42:39 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pj1-x1036.google.com (mail-pj1-x1036.google.com [IPv6:2607:f8b0:4864:20::1036]) by sourceware.org (Postfix) with ESMTPS id 8F4DD3858427 for ; Wed, 27 Mar 2024 19:40:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8F4DD3858427 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 8F4DD3858427 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1036 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711568448; cv=none; b=MAUo+ZGGhyZi6dGlIe93mP2Ym15IjIhsqnizoUCRLy3QQDf0S5fLNjWSTB6V4Wp3Xclk42nDvQNPAanW1coHw772ELZ/tThc565TPHVngckM1/AIudsX/b8p+7HlJZtGGAH+TT/8rFJkz+opBwLu0d0jjxfJow82SM8w+ly8S2c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1711568448; c=relaxed/simple; bh=V2QOHmynST+A06BJ1vVs7hRXKEsIYCDGCjaalv4frLA=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=Y3j0iod9p/vbeHuLn/QS2/oWvxQY85zGJHeZkIBmuD2Affclpor0vtBhvVTIWJYlvImethCL18kmCao0NSfI8xSXLPtWp2ZR0bAr4c5aEPQ5md39hzmSMGz10M9aDBxgZriB12a2lWWA6r5kdyWBN2cYqDgfjHY6NbeSad6CbmQ= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pj1-x1036.google.com with SMTP id 98e67ed59e1d1-29dee60302fso956988a91.1 for ; Wed, 27 Mar 2024 12:40:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711568445; x=1712173245; 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=b/uJsYX5TjTzzmu5D77iSjXX+egw1x7sUXQBSMn9NVQ=; b=ZFTOjJEo4puhIjIb8HbKVzPEGuq9v0PIkET+qdIcVA8d5Aoc11fq+VFzi5p2YPAb3A 856iw5idvrIcrxx1xGZ4B38eO6mpEIPQyux8JbKYlq7eYD2ZkaPOqj1GjyWGDhNLad+e 4HZMpTYm54ZVqlQUeLIM40uq3yl/+JvWJmVaELBYyVLcE2M6JdIS5nQEjnqSpMi9XNzV 0D684DaHZh22rPLPLmUpFhbbZ2t/3ofRLmbGXmJ9D8uPs7W03lRw3CWG5aD5dxnWkqDY a2iBti1Hq1P0z5i2cR4ZAbMYX56P0jf4rR79mVstyC5AXFUcSCpU5QDHSA3+FXO4DMOz Zd7Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711568445; x=1712173245; 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=b/uJsYX5TjTzzmu5D77iSjXX+egw1x7sUXQBSMn9NVQ=; b=FOeNUGGAyFx6RwklDmLoTKFWOvnAJp9vh+zbEP5MteQ/gx9lqat3DutUW+ekNRhUzd Debd9Yexbj5EZ/ITc0xNZdHKhXe04q7iznZ1DmnTzBAQfPLB58ghNmXRdTK3MKd0Vsrr ZEQGI5+70HCNw4F+oFJj1UDVrbqB9izRt2LOB5oT73sWp4WwdCxlT652JAaKAE9YrrjF eNfz4AftIdREVTurrABfhC6ET8e7KTd3dSxM62tCOvTW/nVgEUkIc4SLEuk/9bLiT02B zgxJ2TKm2EiKN7Ca2dIUoHru68i+eoxuPk3EJ/kT3CcCDohK8UyBnD+GnTmwUl1sqlry JyRw== X-Gm-Message-State: AOJu0YwkGyvV/y98liSL3DT3RvVk+45vDvxAXiHCBQOt/pWsMJaJ8ISI ZD0beiTe2NIxTFdKltB2ZZFZjCnrtYp9Redf5CzEV3buaz22i3mE6pha+Ip1+JeVac7WeA4Xecf d X-Received: by 2002:a17:90a:990e:b0:2a0:4ef8:182a with SMTP id b14-20020a17090a990e00b002a04ef8182amr278626pjp.21.1711568444717; Wed, 27 Mar 2024 12:40:44 -0700 (PDT) Received: from mandiga.. ([2804:1b3:a7c3:b18e:67c4:6248:3d8a:f386]) by smtp.gmail.com with ESMTPSA id p11-20020a17090a348b00b002a091be027esm2277357pjb.31.2024.03.27.12.40.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 12:40:44 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v2 07/10] math: Fix isnanf128 static build Date: Wed, 27 Mar 2024 16:40:21 -0300 Message-Id: <20240327194024.1409677-8-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240327194024.1409677-1-adhemerval.zanella@linaro.org> References: <20240327194024.1409677-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.7 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 Some static implementation of float128 routines might call __isnanf128, which is not provided by the static object. Checked on x86_64-linux-gnu. --- math/Makefile | 1 + sysdeps/ieee754/float128/float128_private.h | 2 +- sysdeps/ieee754/float128/s_isnanf128.c | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/math/Makefile b/math/Makefile index f1d210797d..516fa72a26 100644 --- a/math/Makefile +++ b/math/Makefile @@ -372,6 +372,7 @@ libm-test-funcs-auto-static = \ # libm-test-funcs-auto-static libm-test-funcs-noauto-static = \ fmod \ + isnan \ # libm-test-funcs-noauto-static libm-test-funcs-narrow-static = libm-test-funcs-all-static = $(libm-test-funcs-auto-static) $(libm-test-funcs-noauto-static) diff --git a/sysdeps/ieee754/float128/float128_private.h b/sysdeps/ieee754/float128/float128_private.h index 38a8bdd0fe..672bf3cccf 100644 --- a/sysdeps/ieee754/float128/float128_private.h +++ b/sysdeps/ieee754/float128/float128_private.h @@ -352,7 +352,7 @@ #define frexpl frexpf128 #define getpayloadl getpayloadf128 #define isinfl isinff128_do_not_use -#define isnanl isnanf128_do_not_use +#define isnanl isnanf128 #define ldexpl ldexpf128 #define llrintl llrintf128 #define llroundl llroundf128 diff --git a/sysdeps/ieee754/float128/s_isnanf128.c b/sysdeps/ieee754/float128/s_isnanf128.c index 59f71533ce..b73a4e80d7 100644 --- a/sysdeps/ieee754/float128/s_isnanf128.c +++ b/sysdeps/ieee754/float128/s_isnanf128.c @@ -11,7 +11,11 @@ #include "../ldbl-128/s_isnanl.c" #if !IS_IN (libm) #include +#ifdef SHARED hidden_ver (__isnanf128_impl, __isnanf128) +#else +strong_alias (__isnanf128_impl, __isnanf128) +#endif _weak_alias (__isnanf128_impl, isnanl) versioned_symbol (libc, __isnanf128_impl, __isnanf128, GLIBC_2_34); #if (SHLIB_COMPAT (libc, FLOAT128_VERSION_M, GLIBC_2_34))