svn commit: r352029 - projects/clang900-import/lib/libomp
Dimitry Andric
dim at FreeBSD.org
Sun Sep 8 10:00:22 UTC 2019
Author: dim
Date: Sun Sep 8 10:00:21 2019
New Revision: 352029
URL: https://svnweb.freebsd.org/changeset/base/352029
Log:
When building libomp for i386, clang 9.0.0 produces a new warning about
large atomic operations "possibly incurring significant performance
penalties", but there is not much we can do about it, so squelch that
warning.
Modified:
projects/clang900-import/lib/libomp/Makefile
Modified: projects/clang900-import/lib/libomp/Makefile
==============================================================================
--- projects/clang900-import/lib/libomp/Makefile Sun Sep 8 09:47:21 2019 (r352028)
+++ projects/clang900-import/lib/libomp/Makefile Sun Sep 8 10:00:21 2019 (r352029)
@@ -1,5 +1,7 @@
# $FreeBSD$
+.include <bsd.compiler.mk>
+
SHLIB_NAME= libomp.so
OMPSRC= ${SRCTOP}/contrib/openmp/runtime/src
@@ -55,6 +57,13 @@ CXXFLAGS+= -fvisibility-inlines-hidden
CXXFLAGS+= -fno-exceptions
CXXFLAGS+= -fno-rtti
CXXSTD= c++11
+
+.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 90000
+# When targeting i386, clang 9.0.0 produces a new warning about large atomic
+# operations "possibly incurring significant performance penalties", but there
+# is not much we can do about it.
+CWARNFLAGS+= -Wno-atomic-alignment
+.endif
LDFLAGS+= -Wl,--warn-shared-textrel
LDFLAGS+= -Wl,--gc-sections
More information about the svn-src-projects
mailing list