aboutsummaryrefslogtreecommitdiff
path: root/openmp
diff options
context:
space:
mode:
authorMichal Gorny <mgorny@gentoo.org>2018-12-11 19:02:14 +0000
committerMichal Gorny <mgorny@gentoo.org>2018-12-11 19:02:14 +0000
commit8876dac50aafa5a265c1fb1a9d4e38f97b83dfb6 (patch)
tree62fce3b18542e6924451b1266645d0f2060ea3b1 /openmp
parent70cdd83cd6c05c730caeed7ea38c39f880053f8e (diff)
[runtime] Disable KMP_HAVE_QUAD on NetBSD gcc
Disable KMP_HAVE_QUAD when building via gcc on NetBSD system, as the build fails due to unimplemented builtins: .../kmp_atomic.cpp.o: In function `__kmpc_atomic_cmplx16_mul': .../kmp_atomic.cpp:1332: undefined reference to `__multc3' .../kmp_atomic.cpp.o: In function `__kmpc_atomic_cmplx16_div': .../kmp_atomic.cpp:1334: undefined reference to `__divtc3' ... Differential Revision: https://reviews.llvm.org/D55478 llvm-svn: 348886
Diffstat (limited to 'openmp')
-rw-r--r--openmp/runtime/src/kmp_os.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/openmp/runtime/src/kmp_os.h b/openmp/runtime/src/kmp_os.h
index 467fd9655129..54daaf51c2fa 100644
--- a/openmp/runtime/src/kmp_os.h
+++ b/openmp/runtime/src/kmp_os.h
@@ -86,9 +86,12 @@
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
typedef __float128 _Quad;
#undef KMP_HAVE_QUAD
#define KMP_HAVE_QUAD 1
+#endif
#elif KMP_COMPILER_MSVC
typedef long double _Quad;
#endif