From patchwork Mon May 20 12:25:34 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 1937023 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=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=JKhumjhn; 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 4VjcH81fNlz20KG for ; Mon, 20 May 2024 22:25:56 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 682173858C52 for ; Mon, 20 May 2024 12:25:54 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id 9DE243858D1E for ; Mon, 20 May 2024 12:25:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9DE243858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9DE243858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::529 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716207939; cv=none; b=Yk3BJEpLFSbH60O+MDrbpOiH6y6t0LrOY/VGsXqBuWF7qRCoYIUUU0Qf49HfH4QaqZnGKLGLuJkv0+ofETWXqPndyFJZqNLgOlxQlKyHIRQvSdPShqbckTSlIEb70GRkH2OaAPJui4/uevhFUwii1WYycdpvCZ0uE8p+YZAGu0Q= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716207939; c=relaxed/simple; bh=RDl5lJgPr4XIjtfoegjE4tphu+kkh1DdgMi2+3HNNKg=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=evhdaFohQ9auSQyO08GThb8rcci5f9OErZHELLMa0inrFRveEOednibVwUaDy/rFmvtmz0WTmYb1xX+z4fl/LnEl3chKWHiNXxfdksimQ2jMhMaPsi4J4oQ8H3Cm9cbwA8deD0XVVv/wceMYrrZ9i5XUVIhEzw3U/UuRxvVVHWY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-5d42e7ab8a9so66141a12.3 for ; Mon, 20 May 2024 05:25:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716207936; x=1716812736; darn=sourceware.org; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:from:to:cc:subject:date:message-id:reply-to; bh=AflasP1TQPjwbNH5gnnvI3E+7ANQE8U6wZocLNbEsWo=; b=JKhumjhnS2BPjYmRJ5ACTorYdyhpBqAUEG33lKdIrGk5zadyCiVOtl/XYn/+2id6Yw BVx4au0sFaoFCKcNiW5DUyCNYJl1XmkzTjXrjk9BWWaDA/ANtXjECFlRgI8HgowR6AiB on0gj/NSWjcoYPQKNAKHUPA2NN/NkREDjKSd3IubrOsc4CpD+pvtWF044watTTkEEoUq gyP3rZpvNWb6OPcbNVfKqh6pGYRDZt2xJ8MNKwXgdoRDvK7IIZfmwvgVyI/yHjgeKtrX KpOblJPfTfXFF6JcXcV1Fg3rHjhaFpBLE6sffFzAJ0SFl0rX3WqANWbENFRWHDYlvcQt 17DQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716207936; x=1716812736; h=content-transfer-encoding:mime-version:message-id:date:subject:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AflasP1TQPjwbNH5gnnvI3E+7ANQE8U6wZocLNbEsWo=; b=BBv8iK4/vypA1TuwbMNcmKRGFuhRvRrSCKDG+oDqJ2ElKsbxkwcTtpDD3J+3qndimk qdEAOzTKk/atPxM9F9pLjRZn5B1Zn8LZEA24YJPWF7vi9EieS/gDQqAPPiNqRpo5cuFe 4i17Akn/79Tz+QpmQVDOLenT0LCc0nx7DRpudc1JwhgXltAMfEyJ+aW6pBuWv4kYNWfI xmuTjy9VDpUs3RcC5+vQpk2JdBqMB3gb3E/aotqhYunfKvKjGive9G7fjoPWkbYMR8Kp W51bmfJG+aSE6xYU25W+UqWm9D1QGkUbsvgP8760LnLLvfx3WL3tjw6/uY/U8033JHsU w2fg== X-Gm-Message-State: AOJu0YwyYJHKDCGh5gb8Q6vkzfH1kwO1hj83SmIVyLl3ejb2J1A6jnFr 8EK5Au+pzy82ISHwtHvPLCFMsYFY91dz+3V1kIKxOZ4y+l15MokyjAtxRg== X-Google-Smtp-Source: AGHT+IHj8aCKTtJ4SpBdpOo3kRUoC38MzAt6haYuz7y/KKv1H/ZPl4uAeAw08jp+bBtOHxgv/8UwMQ== X-Received: by 2002:a05:6a00:1415:b0:6f4:b6fc:dfc7 with SMTP id d2e1a72fcca58-6f4e02ab7d0mr28606124b3a.9.1716207936164; Mon, 20 May 2024 05:25:36 -0700 (PDT) Received: from gnu-cfl-3.localdomain ([172.56.168.158]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-6f4d2ade270sm19080251b3a.119.2024.05.20.05.25.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 05:25:35 -0700 (PDT) Received: from gnu-cfl-3.. (localhost [IPv6:::1]) by gnu-cfl-3.localdomain (Postfix) with ESMTP id ACEDB740270 for ; Mon, 20 May 2024 05:25:34 -0700 (PDT) From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH] Don't provide XXXf128_do_not_use aliases [BZ #31757] Date: Mon, 20 May 2024 05:25:34 -0700 Message-ID: <20240520122534.3225340-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 X-Spam-Status: No, score=-3022.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, 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 Don't provide __nexttowardf128_do_not_use, nexttowardf128_do_not_use, finitef128_do_not_use, isinff128_do_not_use and isnanf128_do_not_use. This fixes BZ #31757. Signed-off-by: H.J. Lu Reviewed-by: Adhemerval Zanella --- sysdeps/ieee754/float128/s_isnanf128.c | 2 ++ sysdeps/ieee754/ldbl-128/s_finitel.c | 2 ++ sysdeps/ieee754/ldbl-128/s_isinfl.c | 2 ++ sysdeps/ieee754/ldbl-128/s_nextafterl.c | 4 ++++ 4 files changed, 10 insertions(+) diff --git a/sysdeps/ieee754/float128/s_isnanf128.c b/sysdeps/ieee754/float128/s_isnanf128.c index 59f71533ce..e6eb2a200e 100644 --- a/sysdeps/ieee754/float128/s_isnanf128.c +++ b/sysdeps/ieee754/float128/s_isnanf128.c @@ -12,7 +12,9 @@ #if !IS_IN (libm) #include hidden_ver (__isnanf128_impl, __isnanf128) +#ifndef isnanl _weak_alias (__isnanf128_impl, isnanl) +#endif versioned_symbol (libc, __isnanf128_impl, __isnanf128, GLIBC_2_34); #if (SHLIB_COMPAT (libc, FLOAT128_VERSION_M, GLIBC_2_34)) strong_alias (__isnanf128_impl, __isnanf128_alias) diff --git a/sysdeps/ieee754/ldbl-128/s_finitel.c b/sysdeps/ieee754/ldbl-128/s_finitel.c index bfdd88fbbb..f1fff0ced2 100644 --- a/sysdeps/ieee754/ldbl-128/s_finitel.c +++ b/sysdeps/ieee754/ldbl-128/s_finitel.c @@ -32,4 +32,6 @@ int __finitel(_Float128 x) -0x7fff000000000000LL)>>63); } mathx_hidden_def (__finitel) +#ifndef finitel weak_alias (__finitel, finitel) +#endif diff --git a/sysdeps/ieee754/ldbl-128/s_isinfl.c b/sysdeps/ieee754/ldbl-128/s_isinfl.c index baa9a98e80..a0fa0ba659 100644 --- a/sysdeps/ieee754/ldbl-128/s_isinfl.c +++ b/sysdeps/ieee754/ldbl-128/s_isinfl.c @@ -24,4 +24,6 @@ __isinfl (_Float128 x) return ~(lx >> 63) & (hx >> 62); } mathx_hidden_def (__isinfl) +#ifndef isinfl weak_alias (__isinfl, isinfl) +#endif diff --git a/sysdeps/ieee754/ldbl-128/s_nextafterl.c b/sysdeps/ieee754/ldbl-128/s_nextafterl.c index 90e71e3907..f3f3b138dd 100644 --- a/sysdeps/ieee754/ldbl-128/s_nextafterl.c +++ b/sysdeps/ieee754/ldbl-128/s_nextafterl.c @@ -83,5 +83,9 @@ _Float128 __nextafterl(_Float128 x, _Float128 y) return x; } libm_alias_ldouble (__nextafter, nextafter) +#ifndef __nexttowardl strong_alias (__nextafterl, __nexttowardl) +#endif +#ifndef nexttowardl weak_alias (__nextafterl, nexttowardl) +#endif