From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1827) id 4C442388265E; Fri, 30 Jun 2023 22:13:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C442388265E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1688163206; bh=knRv/jN3JnjOHWbBNibtMH8zIc7gqkqmeayL8+Bf2mY=; h=From:To:Subject:Date:From; b=snCo2lrQn/ZNk2fMy1Qf/Nk2MvjtvDHdwhwZbERgvnQbQHKtcX7FI+DdxfoBkdGTf aZ5hVx6ACfjSwMPhlNHdjwvSb4IurJMpG5bPxeJ74wcFqAX9DcBEaEQiFNKy3a2bRV dRVqjl3DljSPvAiwinpeZj7tU1TUs4BrRAkN/Qd0= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Tulio Magno Quites Machado Filho To: glibc-cvs@sourceware.org Subject: [glibc] Stop applying a GCC-specific workaround on clang [BZ #30550] X-Act-Checkin: glibc X-Git-Author: Tulio Magno Quites Machado Filho X-Git-Refname: refs/heads/master X-Git-Oldrev: 6259ab39410cdefc80077afea48ca9cb057f6005 X-Git-Newrev: 0a9e93842d8e535ac8174cb4ff7fb830b20e4ae7 Message-Id: <20230630221326.4C442388265E@sourceware.org> Date: Fri, 30 Jun 2023 22:13:26 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=0a9e93842d8e535ac8174cb4ff7fb830b20e4ae7 commit 0a9e93842d8e535ac8174cb4ff7fb830b20e4ae7 Author: Tulio Magno Quites Machado Filho Date: Tue Jun 13 18:56:33 2023 -0300 Stop applying a GCC-specific workaround on clang [BZ #30550] GCC was the only compiler affected by the issue with __builtin_isinf_sign and float128. Fix BZ #30550. Reported-by: Qiu Chaofan Reviewed-by: Florian Weimer Diff: --- 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