From patchwork Tue Apr 2 14:06:41 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: 1918845 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=HcHNzvWb; 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 4V88qW4n82z1yYw for ; Wed, 3 Apr 2024 01:08:23 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D64B9385E830 for ; Tue, 2 Apr 2024 14:08:21 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pf1-x429.google.com (mail-pf1-x429.google.com [IPv6:2607:f8b0:4864:20::429]) by sourceware.org (Postfix) with ESMTPS id 2B7C13858287 for ; Tue, 2 Apr 2024 14:06:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2B7C13858287 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 2B7C13858287 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::429 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066830; cv=none; b=f5stBPbF6Q4I7yuq6BWkjNJZsLmf55fb9Hsr9qk2b/jAKXc7g1YxbdKxcg5L3q7CIVk84NWGSw2zLDg7on1VCcIYOs4cJGCmmNpBDaqE0VbpyFYZMoGcniqRrC4Nj1yqWt2BDULvG3NEQkupFaVK7y8xfN+ddz5XjQAYok1XnWc= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712066830; c=relaxed/simple; bh=8ksAtigQ9dlqnT85lsOrrcyj2Ft6X7RS08MKjr+WFz4=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=yANHPm6RXVvHL7zbukX08uAh8GiF+aRRUkYKdr3CnHZ1Xmy5s0vMWVSyVlLak5oNBRm0F2j8BhuCsi7hp2+P/U1ZXyXbJ8svN/ub0y+YRlusXk3ul/ftGnlFhLW3Uz8mL+elP3R71MknoqT8pU8aGL+kEEMF4uXLqp1P5eUBqo8= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pf1-x429.google.com with SMTP id d2e1a72fcca58-6e704078860so4391783b3a.0 for ; Tue, 02 Apr 2024 07:06:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712066817; x=1712671617; 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=xOR4nGMOezkTBDkCwuk3xq9dvnSfILCezaDFGnxIPx0=; b=HcHNzvWb5OzuEDsm7wcicX0Y6GXT2tBFl9T7EM3srdnP4fYecFDPojvFME9CbyNAYd hArzpYCiehjnMQaFMSAkycdLBjtZesxcj12AGpjzt5kDPt4d+t5lTQK0g7ZV3D8Kpshy 5pLOG/lYRFm/2U8mnMF49uWO4h2DUlKc3M7MiXyEUbafNwEZUePjCqFzAH5gc7+NjYDa n3gdGvJQIkXSfsw5xsTYTk0nN0aSA2qNFBmnGBkd85LaBCyqJb9ZICuLKBNOpTueiEcW ui9fqVT05BSh5FsFB57Ecgj0+TEr8Y8bdVwD202qhtrTU9fBIpg6JABGQkRK9l3m5GLT FNGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712066817; x=1712671617; 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=xOR4nGMOezkTBDkCwuk3xq9dvnSfILCezaDFGnxIPx0=; b=Z2TMcgbTXnH05SBvjKuCveVNhXjuMDVD0Qcud9dTMllig7+zfBlCFCVcTstzZwMSU8 7s7ua9o5BU8Ubz1zWrLsFr0Jl+DT1tlGX0wBWY4JZQoeRMigS9EnK51U4QvDgZJxu1cQ dCIduEEkeRpP9Uf5etfCgSvSk9mov1etfFQasi1lTlXf6HwxAfejer4zkt1o2R1pjWr4 gbWlSoAEO9l8467RnhO976U5+pATcP+xhuMWH3OlkxN9jytKfwFXXTI/vJeMBdZMiam8 F5KamsYdsh5/orbYH2yiVQwijVWL4M1KhWO1sjhiqjJWDxdDiOV4JC95FemoxYdXNxjH ll1Q== X-Gm-Message-State: AOJu0YyxNGEPS41yYIryCoPtg4vhHGXAv8MIccJCDFeXCoSwfsSZi87p kW66qqP55JyIc8tJ1OKJFr6UiRxBmFN9ms8xM40+o+Datk7w7p4oilWcwMg3px/rhGw/L5PPBk6 X X-Google-Smtp-Source: AGHT+IGlP+ckh6xXeCe1tSzpaqyCDGsi9JggWgaZk7Tk0SNyb4ELFgo13Jg0eQimEtI78Wr0ySRegw== X-Received: by 2002:a17:903:555:b0:1e2:577:f694 with SMTP id jo21-20020a170903055500b001e20577f694mr10336738plb.61.1712066817472; Tue, 02 Apr 2024 07:06:57 -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.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:06:57 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org Cc: Joseph Myers , Florian Weimer , "H . J . Lu" Subject: [PATCH v3 4/7] math: Fix isnanf128 static build Date: Tue, 2 Apr 2024 11:06:41 -0300 Message-Id: <20240402140644.2172819-5-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.5 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 Some static implementation of float128 routines might call __isnanf128, which is not provided by the static object. Checked on x86_64-linux-gnu. --- sysdeps/ieee754/float128/float128_private.h | 2 +- sysdeps/ieee754/float128/s_isnanf128.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) 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))