From owner-svn-src-projects@freebsd.org Sun Sep 8 10:00:21 2019 Return-Path: Delivered-To: svn-src-projects@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E452CEEA69 for ; Sun, 8 Sep 2019 10:00:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 46R6H95SSYz3DhN; Sun, 8 Sep 2019 10:00:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9F3D71C355; Sun, 8 Sep 2019 10:00:21 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x88A0LDt054682; Sun, 8 Sep 2019 10:00:21 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x88A0LQ3054681; Sun, 8 Sep 2019 10:00:21 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201909081000.x88A0LQ3054681@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Sun, 8 Sep 2019 10:00:21 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r352029 - projects/clang900-import/lib/libomp X-SVN-Group: projects X-SVN-Commit-Author: dim X-SVN-Commit-Paths: projects/clang900-import/lib/libomp X-SVN-Commit-Revision: 352029 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-projects@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the src " projects" tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Sep 2019 10:00:22 -0000 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 + 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