From df0b092d08028bde10ea0ffc1772a00e8062fd2d Mon Sep 17 00:00:00 2001 From: Tatiana Borisova Date: Tue, 8 Feb 2022 15:30:56 +0200 Subject: [PATCH] GHS compiler doesn't support signaling NaNs for double - has_signaling_NaN returns TRUE by mistake, will be fixed in future compiler releases. Task-number: QTBUG-99123 Pick-to: 6.2 6.3 Change-Id: I3f2af7b5328b49d7ceffa548461d1d6bf72ba7ed Reviewed-by: Edward Welbourne Reviewed-by: Thiago Macieira --- configure.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.cmake b/configure.cmake index c74847f5f2..879764aca7 100644 --- a/configure.cmake +++ b/configure.cmake @@ -225,7 +225,11 @@ qt_config_compile_test("separate_debug_info" qt_config_compile_test(signaling_nan LABEL "Signaling NaN for doubles" CODE -"#include +"#if defined(__ghs) && (__GHS_VERSION_NUMBER <= 202014) +# error Signal NaNs are not supported by GHS compiler, but has_signaling_NaN returns TRUE. Will be fixed in future compiler releases. +#endif + +#include int main(void) {