From patchwork Tue Jun 13 21:56:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tulio Magno Quites Machado Filho X-Patchwork-Id: 1794694 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=vDhkhy1P; dkim-atps=neutral Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Qgj8m143lz20QH for ; Wed, 14 Jun 2023 07:57:44 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 642DD3858C5E for ; Tue, 13 Jun 2023 21:57:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 642DD3858C5E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1686693461; bh=xv/pwc6mz4qxMnN14x5ADHuv7CwGf2vLbvn5PAUNx7E=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=vDhkhy1PkzxZE4zSj8Y3x0VZEFB9VRpFS+npTvi1d3vWsQqBAJ8GZREJ98BlKYyET QqdWEagL62ferIJXs6iTOjKGZ53mRd3jvKQFzBLVrgrAHgEhnf5MNMPjdMr2tXCuAG 5CEyMQ0JcbKyLVnj2kJAXxv0XodFbws+I1EgD/4U= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from crimson.ash.relay.mailchannels.net (crimson.ash.relay.mailchannels.net [23.83.222.44]) by sourceware.org (Postfix) with ESMTPS id 258513858D38 for ; Tue, 13 Jun 2023 21:57:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 258513858D38 X-Sender-Id: dreamhost|x-authsender|tuliom@ascii.art.br Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 15CDB541901 for ; Tue, 13 Jun 2023 21:57:21 +0000 (UTC) Received: from pdx1-sub0-mail-a209.dreamhost.com (unknown [127.0.0.6]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 5F44F541979 for ; Tue, 13 Jun 2023 21:57:20 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1686693440; a=rsa-sha256; cv=none; b=vkyDNuGRtY3H8DDojlFV1CiAOSmAeUcrYHpmyb/jItENTzfIP71pohLkh7ZzLNBgUNHUmK N6VTsxMTsXZd5mMKI58A8FDKiCEX8OM/HHWVL7Ch2vPnNWtIo59lMdvqm5llJt+6dWquqf XCXeaSCncfmXhZxhat34puHxs0pWvi3cbSUk9Kalxqn0NeKrTuUaZv0xMzYXxC9hY7j6Jb 65Sd3FeRb2PZe7nREivvNMHorVawjArxMqFziruM5rIeFfuRjpTIAMrhczgC2LsKgwLMsT 1WFR2LATa2hYr/Kn+PlQbsTlXG0a4jw2oOunjfCLA62s1a02OgJPicINBJAcSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1686693440; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=xv/pwc6mz4qxMnN14x5ADHuv7CwGf2vLbvn5PAUNx7E=; b=tjuC5go/23tEVC2YY6V0geTggye2uFIVJLsRzT+HCwQgdbb44wUQDurd71KVlkhJT3u26o KgjYhmAkXv3FMj3GmgTWfkPdlrsjAHO9iqB6iCHFSMUla4i5unc77TEAc9Skta4Z9ge28b 0q8K9WLQGvNBcQTuiF14k3lKVOIxsNU2cWxAWKQxzS1daKECG7xdhVV0IbwqopkLsjSyag Lw2wk07oqZCz8a4mWKxB5g25dtFzozoTg3XA+0Cnc6tmnQgbUW3a8tZPozMxBCW2TQTnLF J4hPEI0uU1zwo9Ql2MJqbg/iPjDN7Ay6HCNlw5c5TS9TKPSvqByknn0u+qp7IA== ARC-Authentication-Results: i=1; rspamd-6c69b8658d-2htd6; auth=pass smtp.auth=dreamhost smtp.mailfrom=tuliom@ascii.art.br X-Sender-Id: dreamhost|x-authsender|tuliom@ascii.art.br X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|tuliom@ascii.art.br X-MailChannels-Auth-Id: dreamhost X-Share-Eyes: 62be325e52564595_1686693440621_1595349359 X-MC-Loop-Signature: 1686693440621:3827488969 X-MC-Ingress-Time: 1686693440621 Received: from pdx1-sub0-mail-a209.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.119.120.43 (trex/6.9.1); Tue, 13 Jun 2023 21:57:20 +0000 Received: from ascii.art.br (unknown [181.225.181.171]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: tuliom@ascii.art.br) by pdx1-sub0-mail-a209.dreamhost.com (Postfix) with ESMTPSA id 4Qgj8H5ZySz3V for ; Tue, 13 Jun 2023 14:57:19 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [PATCH] Stop applying a GCC-specific workaround on clang [BZ #30550] Date: Tue, 13 Jun 2023 18:56:33 -0300 Message-Id: <20230613215633.3179708-1-tuliom@ascii.art.br> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-Spam-Status: No, score=-8.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Tulio Magno Quites Machado Filho via Libc-alpha From: Tulio Magno Quites Machado Filho Reply-To: Tulio Magno Quites Machado Filho Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" From: Tulio Magno Quites Machado Filho GCC was the only compiler affected by the issue with __builtin_isinf_sign and float128. Fix BZ #30550. Reviewed-by: Florian Weimer --- math/math.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/math/math.h b/math/math.h index 6427c72276..f13639943e 100644 --- a/math/math.h +++ b/math/math.h @@ -1015,7 +1015,8 @@ enum /* Return nonzero value if X is positive or negative infinity. */ # if __HAVE_DISTINCT_FLOAT128 && !__GNUC_PREREQ (7,0) \ - && !defined __SUPPORT_SNAN__ && !defined __cplusplus + && !defined __SUPPORT_SNAN__ && !defined __cplusplus \ + && !defined __clang__ /* Since __builtin_isinf_sign is broken for float128 before GCC 7.0, use the helper function, __isinff128, with older compilers. This is only provided for C mode, because in C++ mode, GCC has no support