From 87dc0e9bc98b71c8211e0d8f5e0b814bbbb3cd7b Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Tue, 14 Feb 2017 00:54:48 +0000 Subject: [PATCH] Handle clang 4.x+ with the compile-time exception added in r312213 It also fails the assertions noted in bug 208703 PR: 208703 PR: 217084 Submitted by: jbeich MFC after: 1 week Sponsored by: Dell EMC Isilon --- lib/msun/tests/fmaxmin_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/msun/tests/fmaxmin_test.c b/lib/msun/tests/fmaxmin_test.c index 87adb95f32d..24056b0ea22 100644 --- a/lib/msun/tests/fmaxmin_test.c +++ b/lib/msun/tests/fmaxmin_test.c @@ -116,7 +116,8 @@ testall(int testnum, long double big, long double small) /* Clang 3.8.0+ fails the invariants for testcase 6, 7, 10, and 11. */ #if defined(__clang__) && \ - (__clang_major__ >= 3 && __clang_minor__ >= 8 && __clang_patchlevel__ >= 0) + ((__clang_major__ > 3)) || \ + ((__clang_major__ == 3 && __clang_minor__ >= 8)) #define affected_by_bug_208703 #endif