From owner-svn-src-projects@freebsd.org Sun Aug 5 18:27:37 2018 Return-Path: Delivered-To: svn-src-projects@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7EB310599A3 for ; Sun, 5 Aug 2018 18:27:37 +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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7ADD0701FF; Sun, 5 Aug 2018 18:27:37 +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 5735121DC0; Sun, 5 Aug 2018 18:27:37 +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 w75IRbsW082514; Sun, 5 Aug 2018 18:27:37 GMT (envelope-from dim@FreeBSD.org) Received: (from dim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w75IRbl4082513; Sun, 5 Aug 2018 18:27:37 GMT (envelope-from dim@FreeBSD.org) Message-Id: <201808051827.w75IRbl4082513@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dim set sender to dim@FreeBSD.org using -f From: Dimitry Andric Date: Sun, 5 Aug 2018 18:27:37 +0000 (UTC) To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r337355 - projects/clang700-import/share/mk X-SVN-Group: projects X-SVN-Commit-Author: dim X-SVN-Commit-Paths: projects/clang700-import/share/mk X-SVN-Commit-Revision: 337355 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.27 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, 05 Aug 2018 18:27:37 -0000 Author: dim Date: Sun Aug 5 18:27:36 2018 New Revision: 337355 URL: https://svnweb.freebsd.org/changeset/base/337355 Log: Disable the new clang 7.0.0 -Watomic-alignment warning ("misaligned or large atomic operation may incur significant performance penalty" ) for arm before armv6. Since on these older architectures atomic operations are always translated to libcalls, and this is expected, the warning is not really useful there. Modified: projects/clang700-import/share/mk/bsd.sys.mk Modified: projects/clang700-import/share/mk/bsd.sys.mk ============================================================================== --- projects/clang700-import/share/mk/bsd.sys.mk Sun Aug 5 18:24:35 2018 (r337354) +++ projects/clang700-import/share/mk/bsd.sys.mk Sun Aug 5 18:27:36 2018 (r337355) @@ -80,6 +80,10 @@ CWARNFLAGS.clang+= -Wno-unused-local-typedef .if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 40000 CWARNFLAGS.clang+= -Wno-address-of-packed-member .endif +.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 70000 && \ + ${MACHINE_CPUARCH} == "arm" && !${MACHINE_ARCH:Marmv[67]*} +CWARNFLAGS.clang+= -Wno-atomic-alignment +.endif .endif # WARNS <= 3 .if ${WARNS} <= 2 CWARNFLAGS.clang+= -Wno-switch -Wno-switch-enum -Wno-knr-promoted-parameter