Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 Feb 2019 23:15:54 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r343671 - head/lib/msun
Message-ID:  <201902012315.x11NFsHf063090@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vangyzen
Date: Fri Feb  1 23:15:54 2019
New Revision: 343671
URL: https://svnweb.freebsd.org/changeset/base/343671

Log:
  libm: squelch -Woverflow from gcc6
  
  Sponsored by:	Dell EMC Isilon

Modified:
  head/lib/msun/Makefile

Modified: head/lib/msun/Makefile
==============================================================================
--- head/lib/msun/Makefile	Fri Feb  1 23:04:45 2019	(r343670)
+++ head/lib/msun/Makefile	Fri Feb  1 23:15:54 2019	(r343671)
@@ -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?201902012315.x11NFsHf063090>