Date: Thu, 15 Apr 2021 18:52:13 GMT From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: e7cc5cda88f0 - stable/11 - libm: squelch -Woverflow from gcc6 Message-ID: <202104151852.13FIqDmw003662@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/11 has been updated by dim: URL: https://cgit.FreeBSD.org/src/commit/?id=e7cc5cda88f079b80636aa7f71b0fc671701f77d commit e7cc5cda88f079b80636aa7f71b0fc671701f77d Author: Eric van Gyzen <vangyzen@FreeBSD.org> AuthorDate: 2019-02-01 23:15:54 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2021-04-15 18:51:18 +0000 libm: squelch -Woverflow from gcc6 Sponsored by: Dell EMC Isilon (cherry picked from commit 50b06886a715d7be052e1742f7d11ce82928f134) --- lib/msun/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/msun/Makefile b/lib/msun/Makefile index 9b72bfa63a71..6ad0e0e5c428 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202104151852.13FIqDmw003662>