The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=93d6fa53c9951563be3081a347cc4dc1917ad452
commit 93d6fa53c9951563be3081a347cc4dc1917ad452 Author: John Baldwin <[email protected]> AuthorDate: 2021-09-13 18:00:38 +0000 Commit: John Baldwin <[email protected]> CommitDate: 2021-09-13 18:00:38 +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 --- 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 304d8dd7d243..14b643fe0a20 100644 --- a/share/mk/bsd.sys.mk +++ b/share/mk/bsd.sys.mk @@ -196,6 +196,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 _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all To unsubscribe, send any mail to "[email protected]"
