about summary refs log tree commit diff
path: root/math
diff options
context:
space:
mode:
authorTulio Magno Quites Machado Filho <tuliom@redhat.com>2023-06-13 18:56:33 -0300
committerTulio Magno Quites Machado Filho <tuliom@redhat.com>2023-06-30 19:11:11 -0300
commit0a9e93842d8e535ac8174cb4ff7fb830b20e4ae7 (patch)
treedf69cf1f17de05bda9c6a26c3ec7d666ebd8f30a /math
parent6259ab39410cdefc80077afea48ca9cb057f6005 (diff)
downloadglibc-0a9e93842d8e535ac8174cb4ff7fb830b20e4ae7.tar.gz
glibc-0a9e93842d8e535ac8174cb4ff7fb830b20e4ae7.tar.xz
glibc-0a9e93842d8e535ac8174cb4ff7fb830b20e4ae7.zip
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 <qiucofan@cn.ibm.com>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
Diffstat (limited to 'math')
-rw-r--r--math/math.h3
1 files changed, 2 insertions, 1 deletions
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