[Openmp-commits] [PATCH] D55478: [openmp] [runtime] Disable KMP_HAVE_QUAD on NetBSD gcc
Michał Górny via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Sat Dec 8 10:27:20 PST 2018
mgorny created this revision.
mgorny added reviewers: krytarowski, jlpeyton.
Herald added subscribers: jfb, guansong.
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'
...
Repository:
rOMP OpenMP
https://reviews.llvm.org/D55478
Files:
runtime/src/kmp_os.h
Index: runtime/src/kmp_os.h
===================================================================
--- runtime/src/kmp_os.h
+++ 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D55478.177397.patch
Type: text/x-patch
Size: 493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/openmp-commits/attachments/20181208/9aceadd2/attachment-0001.bin>
More information about the Openmp-commits
mailing list