[Openmp-commits] [openmp] [OpenMP] Re-enable KMP_HAVE_QUAD on NetBSD GCC (PR #73478)

Brad Smith via Openmp-commits openmp-commits at lists.llvm.org
Fri Dec 1 00:19:02 PST 2023


https://github.com/brad0 updated https://github.com/llvm/llvm-project/pull/73478

>From e584695a6211e9958f45366774849da9d7d827e6 Mon Sep 17 00:00:00 2001
From: Brad Smith <brad at comstyle.com>
Date: Sun, 26 Nov 2023 23:43:22 -0500
Subject: [PATCH] [runtime] Re-enable KMP_HAVE_QUAD on NetBSD 10.0 with GCC
 10.5

---
 openmp/runtime/src/kmp_os.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/openmp/runtime/src/kmp_os.h b/openmp/runtime/src/kmp_os.h
index ca694f6f14933cd..beb8d0197ddf58f 100644
--- a/openmp/runtime/src/kmp_os.h
+++ b/openmp/runtime/src/kmp_os.h
@@ -105,8 +105,9 @@
    128-bit extended precision type yet */
 typedef long double _Quad;
 #elif KMP_COMPILER_GCC
-/* GCC on NetBSD lacks __multc3/__divtc3 builtins needed for quad */
-#if !KMP_OS_NETBSD
+/* GCC on NetBSD lacks __multc3/__divtc3 builtins needed for quad until
+   NetBSD 10.0 which ships with GCC 10.5 */
+#if (!KMP_OS_NETBSD || __GNUC__ >= 10)
 typedef __float128 _Quad;
 #undef KMP_HAVE_QUAD
 #define KMP_HAVE_QUAD 1



More information about the Openmp-commits mailing list