Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 May 2022 23:23:55 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 5cf638d0049e - stable/13 - Disable -Woverflow errors for i386 for GCC 9.
Message-ID:  <202205102323.24ANNt4C072136@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=5cf638d0049e0dceffe5076bf416b1844fe8e827

commit 5cf638d0049e0dceffe5076bf416b1844fe8e827
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2021-09-13 18:00:38 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2022-05-10 21:01:02 +0000

    Disable -Woverflow errors for i386 for GCC 9.
    
    GCC 9 warns about floating point constants overflowing for i386.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D26201
    
    (cherry picked from commit 93d6fa53c9951563be3081a347cc4dc1917ad452)
---
 share/mk/bsd.sys.mk | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/share/mk/bsd.sys.mk b/share/mk/bsd.sys.mk
index 3bbe7aa849b4..50039a1f5f63 100644
--- a/share/mk/bsd.sys.mk
+++ b/share/mk/bsd.sys.mk
@@ -199,6 +199,13 @@ CWARNFLAGS+=	-Wno-error=aggressive-loop-optimizations	\
 		-Wno-error=stringop-truncation
 .endif
 
+# GCC 9.2.0
+.if ${COMPILER_VERSION} >= 90200
+.if ${MACHINE_ARCH} == "i386"
+CWARNFLAGS+=	-Wno-error=overflow
+.endif
+.endif
+
 # GCC's own arm_neon.h triggers various warnings
 .if ${MACHINE_CPUARCH} == "aarch64"
 CWARNFLAGS+=	-Wno-system-headers



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