[Openmp-commits] [openmp] 027935d - [OpenMP] Re-enable KMP_HAVE_QUAD on NetBSD 10.0 with GCC 10.5 (#73478)
via Openmp-commits
openmp-commits at lists.llvm.org
Fri Dec 1 13:07:24 PST 2023
Author: Brad Smith
Date: 2023-12-01T16:07:16-05:00
New Revision: 027935d3cd2886d3dd07741539305f972c5f7e5f
URL: https://github.com/llvm/llvm-project/commit/027935d3cd2886d3dd07741539305f972c5f7e5f
DIFF: https://github.com/llvm/llvm-project/commit/027935d3cd2886d3dd07741539305f972c5f7e5f.diff
LOG: [OpenMP] Re-enable KMP_HAVE_QUAD on NetBSD 10.0 with GCC 10.5 (#73478)
Added:
Modified:
openmp/runtime/src/kmp_os.h
Removed:
################################################################################
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