From owner-svn-src-head@freebsd.org Sun Jul 23 22:10:50 2017 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id C7D35DAEB69; Sun, 23 Jul 2017 22:10:50 +0000 (UTC) (envelope-from rb743@hermes.cam.ac.uk) Received: from ppsw-30.csi.cam.ac.uk (ppsw-30.csi.cam.ac.uk [131.111.8.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 859AC71638; Sun, 23 Jul 2017 22:10:50 +0000 (UTC) (envelope-from rb743@hermes.cam.ac.uk) X-Cam-AntiVirus: no malware found X-Cam-ScannerInfo: http://help.uis.cam.ac.uk/email-scanner-virus Received: from sc1.bsdpad.com ([163.172.212.18]:15823) by ppsw-30.csi.cam.ac.uk (smtp.hermes.cam.ac.uk [131.111.8.156]:587) with esmtpsa (LOGIN:rb743) (TLSv1:ECDHE-RSA-AES256-SHA:256) id 1dZP5L-000rLX-dC (Exim 4.89) (return-path ); Sun, 23 Jul 2017 23:10:47 +0100 Date: Sun, 23 Jul 2017 22:05:57 +0000 From: Ruslan Bukin To: "Ngie Cooper (yaneurabeya)" Cc: Ruslan Bukin , src-committers , svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r321331 - head/share/mk Message-ID: <20170723220557.GA79777@bsdpad.com> References: <201707211450.v6LEoWCO064640@repo.freebsd.org> <12D1C1EF-EC00-459F-844E-E5EA342EEDF2@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <12D1C1EF-EC00-459F-844E-E5EA342EEDF2@gmail.com> User-Agent: Mutt/1.6.1 (2016-04-27) Sender: "R. Bukin" X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Jul 2017 22:10:50 -0000 On Sun, Jul 23, 2017 at 11:14:54AM -0700, Ngie Cooper (yaneurabeya) wrote: > > > On Jul 21, 2017, at 07:50, Ruslan Bukin wrote: > > > > Author: br > > Date: Fri Jul 21 14:50:32 2017 > > New Revision: 321331 > > URL: https://svnweb.freebsd.org/changeset/base/321331 > > > > Log: > > Add warning flags for GCC 7.1.0 compiler. > > > > Sponsored by: DARPA, AFRL > > > > Modified: > > head/share/mk/bsd.sys.mk > > > > Modified: head/share/mk/bsd.sys.mk > > ============================================================================== > > --- head/share/mk/bsd.sys.mk Fri Jul 21 14:14:47 2017 (r321330) > > +++ head/share/mk/bsd.sys.mk Fri Jul 21 14:50:32 2017 (r321331) > > @@ -145,6 +145,23 @@ CWARNFLAGS+= -Wno-error=misleading-indentation \ > > -Wno-error=unused-const-variable > > .endif > > > > +# GCC 7.1.0 > > +.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 70100 > > +CWARNFLAGS+= -Wno-error=deprecated \ > > + -Wno-error=pointer-compare \ > > + -Wno-error=format-truncation \ > > + -Wno-error=implicit-fallthrough \ > > + -Wno-error=expansion-to-defined \ > > + -Wno-error=int-in-bool-context \ > > + -Wno-error=bool-operation \ > > + -Wno-error=format-overflow \ > > + -Wno-error=stringop-overflow \ > > + -Wno-error=memset-elt-size \ > > + -Wno-error=int-in-bool-context \ > > + -Wno-error=unused-const-variable \ > > + -Wno-error=nonnull > > +.endif > > Hi Ruslan, > 1. Fixing some of these warnings make sense — why are we ignoring them? > 2. Why isn’t this being MFCed? gcc 7.1.0 is available on ^/stable/11 as well. This is mostly for upcoming RISC-V update to support new privilege specification. I did not try this on other architectures as my current goal is to support latest RISC-V. Ruslan