aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRyan Libby <rlibby@FreeBSD.org>2020-12-19 04:05:08 +0000
committerRyan Libby <rlibby@FreeBSD.org>2020-12-19 04:05:08 +0000
commit3fb56c614a998452d26da3727193bd4ed5af3862 (patch)
treeb72440d7c65cac92cb7ffae9c099ab62de7c6b7c
parent81fee74d188d133fada5c30ccedea05ad8b7ddfd (diff)
downloadsrc-3fb56c614a998452d26da3727193bd4ed5af3862.tar.gz
src-3fb56c614a998452d26da3727193bd4ed5af3862.zip
MFC r343671 (by vangyzen):
libm: squelch -Woverflow from gcc6 Sponsored by: Dell EMC Isilon
Notes
Notes: svn path=/stable/12/; revision=368780
-rw-r--r--lib/msun/Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/msun/Makefile b/lib/msun/Makefile
index 0cba3fc8b53b..6c9af4c018c8 100644
--- a/lib/msun/Makefile
+++ b/lib/msun/Makefile
@@ -108,6 +108,15 @@ COMMON_SRCS+= catrigl.c \
s_nextafterl.c s_nexttoward.c s_remquol.c s_rintl.c s_roundl.c \
s_scalbnl.c s_sinl.c s_sincosl.c \
s_tanhl.c s_tanl.c s_truncl.c w_cabsl.c
+# Work around this warning from gcc 6:
+# lib/msun/ld80/e_powl.c:275:1: error: floating constant exceeds range of
+# 'long double' [-Werror=overflow]
+# if( y >= LDBL_MAX )
+# See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=130067
+.include <bsd.compiler.mk>
+.if ${COMPILER_TYPE} == "gcc" && ${COMPILER_VERSION} >= 60000
+CFLAGS.e_powl.c+= -Wno-error=overflow
+.endif
.endif
# C99 complex functions