diff options
author | John Baldwin <jhb@FreeBSD.org> | 2021-09-13 18:00:38 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2021-09-13 18:00:38 +0000 |
commit | 93d6fa53c9951563be3081a347cc4dc1917ad452 (patch) | |
tree | e189fcf15feb5bfc51c81737af2b43f8e5ec74be | |
parent | 3b5f95d7bd20e366d720a47a79c451ae037a3ae1 (diff) | |
download | src-93d6fa53c9951563be3081a347cc4dc1917ad452.tar.gz src-93d6fa53c9951563be3081a347cc4dc1917ad452.zip |
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
-rw-r--r-- | share/mk/bsd.sys.mk | 7 |
1 files changed, 7 insertions, 0 deletions
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 |