Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Sep 2019 10:00:21 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r352029 - projects/clang900-import/lib/libomp
Message-ID:  <201909081000.x88A0LQ3054681@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909081000.x88A0LQ3054681>