libm: squelch -Woverflow from gcc6

Sponsored by:	Dell EMC Isilon
This commit is contained in:
Eric van Gyzen 2019-02-01 23:15:54 +00:00
parent f4d8b4f81c
commit 50b06886a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=343671

View File

@ -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