From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id C4EC0385840D for ; Mon, 20 May 2024 16:56:38 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C4EC0385840D 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 C4EC0385840D Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::62d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716224200; cv=none; b=W+rsGjUi7sRepVvSoeKCAJY4/3yF78ySIY/xC/NEFEDPCfwuMISSABvJcEj3nyxqqkYnYhkDYh3ogn2Ure9kBPDstTftKH6AtJEgubP3cl1o4w3svEC9elUjA3Yx2KIQoulRle0vFQjbsBR53NfHJhcJE3neFghCEKsz29oMk0M= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716224200; c=relaxed/simple; bh=ENayFq8w07uGp3Mdm5A96mVH8n3espN2ocVeXAYIe84=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=o++D9j7tfPGphipBDrUNu8WFp+vRoaEeJACuZvXFhbSICpD04RgcfHHazjG08qkCb65nYrgBX6y4NrNSCfQh+ztPDMKxUp9mo0ER4KcD7xVPeGw4nglWc7kKNg5rPUBUVDWcFYZRHqwLUngHC1TTevz/l61Sl2balwXkCCy7glA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1eb0e08bfd2so84661185ad.1 for ; Mon, 20 May 2024 09:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716224197; x=1716828997; 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=wsBDs37DdglNMjpapkXvC4G3H8i3QWB1Prn7FFCP2CM=; b=N00DY6/u1M3RFdIbApiF0s/SNpx4NMdejmWEvXuUjHfrLr66iqN3wDsMlaWNrGKSQA xNkjxODvR1nZZeIe0mXxJOrLZ/fGdicyMV3Z7V5B0P1wi5Z8eMKyjPXqWf9CVT1oJYGz vfVUZS7NzOKxAj096BKJJ/JkhmsOU/hbwfosNppTYbcnv6X0gN4YlgLMhuYd/Xhtswwv 2ri/hER5GHvuL18YGMuyuwMMVeoWtJPwBJoj4Atn3j7bh2YlWySEJUP4UpidX1nccL5J xLil/g4whYV0cO9tb9vmszNeAFnht0sXHDia9lOwVMVcaTFugh+Flo8l+uj6yw7uJvra yVdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716224197; x=1716828997; 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=wsBDs37DdglNMjpapkXvC4G3H8i3QWB1Prn7FFCP2CM=; b=e0+q68hpr3zDWs3IWzlw2d9Mla+uGjnvznMCF99jhUtHbp8g1DbiLok7WvzUKIIhbc mAPLXwswza9mn8MekpcZUufhnkjTWhmfPcYHk3zjbkXMwsxykdA5+dNH8zB9SDdADQcl dDy9pvVlxZEbWbnYBe2x44NiU5KskISHql7hcn844/9TssqeMwmsXG23V+ZaGflnowqq 1TS5TGHJap58nlgwrUoedHLl3AIXgg00ZK7eOy/jAc00YHBi1h+E+iCf1cTOJYtJTLWt ZvulQhxrRUzukXUl7/s+DCZOO9HvBTVKVoRau9emE4cnMa6Ol6UThGU0A/irLRttV6ut 1YfA== X-Gm-Message-State: AOJu0YwXDlJLvy4s4AxMDpQ5pVe846XZuKkY3zBA5xC403NJTORbkd7K lOGtp83PNTTIDJ0q6Me0BP4WAz9m6qGKTyVm6qrOx09dA0c0F2z+DbBINg== X-Google-Smtp-Source: AGHT+IHoIF9tOByNQuQI8qd2efu2FoM5UJoYkkBXke2eJ4QRLjofvTS17DxSPKzdj6luxp4InAvuZw== X-Received: by 2002:a17:902:f64c:b0:1f2:fe60:2d80 with SMTP id d9443c01a7336-1f2fe602f64mr40722385ad.6.1716224197511; Mon, 20 May 2024 09:56:37 -0700 (PDT) Received: from gnu-tgl-3.localdomain ([172.56.168.158]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1ef0c138c04sm205803815ad.267.2024.05.20.09.56.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 09:56:37 -0700 (PDT) Received: from gnu-tgl-3.. (localhost [IPv6:::1]) by gnu-tgl-3.localdomain (Postfix) with ESMTP id 17A22C00BF for ; Mon, 20 May 2024 09:56:36 -0700 (PDT) From: "H.J. Lu" To: libc-alpha@sourceware.org Subject: [PATCH] Don't provide scalb/significand _FloatN aliases [BZ #31760] Date: Mon, 20 May 2024 09:56:36 -0700 Message-ID: <20240520165636.311074-1-hjl.tools@gmail.com> X-Mailer: git-send-email 2.45.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 List-Id: scalb is a deprecated interface which was obsolescent in POSIX.1-2001, removed in POSIX.1-2008, never made to C standard. significant was originally from BSD and never made in any standard. Fix BZ #31760 by not providing _FloatN aliases for them. Signed-off-by: H.J. Lu --- math/s_significand_template.c | 12 ++++++++++++ math/w_scalb_template.c | 12 ++++++++++++ 2 files changed, 24 insertions(+) diff --git a/math/s_significand_template.c b/math/s_significand_template.c index a351390411..0c8a1c3d75 100644 --- a/math/s_significand_template.c +++ b/math/s_significand_template.c @@ -30,4 +30,16 @@ M_DECL_FUNC (__significand) (FLOAT x) { return M_SUF (__ieee754_scalb) (x,(FLOAT) - M_SUF (__ilogb) (x)); } + +/* Don't provide _FloatN aliases for significand which was originally + from BSD and never made in any standard. */ +#undef libm_alias_float_other_r +#define libm_alias_float_other_r(from, to, r) +#undef libm_alias_double_other_r +#define libm_alias_double_other_r(from, to, r) +#undef libm_alias_ldouble_other_r +#define libm_alias_ldouble_other_r(from, to, r) +#undef libm_alias_float128_other_r +#define libm_alias_float128_other_r(from, to, r) + declare_mgen_alias (__significand, significand) diff --git a/math/w_scalb_template.c b/math/w_scalb_template.c index 2fd5ca1878..f9f98508e9 100644 --- a/math/w_scalb_template.c +++ b/math/w_scalb_template.c @@ -52,6 +52,18 @@ FLOAT M_DECL_FUNC (__scalb) (FLOAT x, FLOAT fn) return z; } +/* Don't provide _FloatN aliases for scalb which is a deprecated interface, + was obsolescent in POSIX.1-2001, removed in POSIX.1-2008, never made to + C standard. */ +#undef libm_alias_float_other_r +#define libm_alias_float_other_r(from, to, r) +#undef libm_alias_double_other_r +#define libm_alias_double_other_r(from, to, r) +#undef libm_alias_ldouble_other_r +#define libm_alias_ldouble_other_r(from, to, r) +#undef libm_alias_float128_other_r +#define libm_alias_float128_other_r(from, to, r) + declare_mgen_alias (__scalb, scalb); #endif /* __USE_WRAPPER_TEMPLATE. */ -- 2.45.1