Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Nov 2019 06:25:08 +0000 (UTC)
From:      Ryan Libby <rlibby@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r355208 - head/sys/conf
Message-ID:  <201911290625.xAT6P8e8017552@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rlibby
Date: Fri Nov 29 06:25:07 2019
New Revision: 355208
URL: https://svnweb.freebsd.org/changeset/base/355208

Log:
  kern.mk: -Wno-error=stringop-overflow for gcc due to false positives
  
  Demote gcc's Wstringop-overflow to Wno-error due to false positives.
  E.g. the riscv64 build with gcc 8.3.0 has been failing with this warning
  since r355062 [1].  A bug has been filed with gcc [2].  The warning was
  first introduced in gcc 7.1 [3]. Hopefully we can avoiding suppressing
  the warning in future gcc versions.
  
  [1] https://ci.freebsd.org/job/FreeBSD-head-riscv64-build/16691/
  [2] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92718
  [3] https://gcc.gnu.org/wiki/WarningHistory
  
  Reviewed by:	markj
  Sponsored by:	Dell EMC Isilon
  Differential Revision:	https://reviews.freebsd.org/D22603

Modified:
  head/sys/conf/kern.mk

Modified: head/sys/conf/kern.mk
==============================================================================
--- head/sys/conf/kern.mk	Fri Nov 29 06:25:03 2019	(r355207)
+++ head/sys/conf/kern.mk	Fri Nov 29 06:25:07 2019	(r355208)
@@ -61,6 +61,9 @@ CWARNEXTRA+=	-Wno-error=misleading-indentation		\
 		-Wno-error=shift-overflow			\
 		-Wno-error=tautological-compare
 .endif
+.if ${COMPILER_VERSION} >= 70100
+CWARNEXTRA+=	-Wno-error=stringop-overflow
+.endif
 .if ${COMPILER_VERSION} >= 70200
 CWARNEXTRA+=	-Wno-error=memset-elt-size
 .endif



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