Changeset View
Changeset View
Standalone View
Standalone View
lib/msun/Makefile
Show All 28 Lines | |||||
CFLAGS+= -I${.CURDIR}/ld80 | CFLAGS+= -I${.CURDIR}/ld80 | ||||
.elif ${LDBL_PREC} == 113 | .elif ${LDBL_PREC} == 113 | ||||
.PATH: ${.CURDIR}/ld128 | .PATH: ${.CURDIR}/ld128 | ||||
CFLAGS+= -I${.CURDIR}/ld128 | CFLAGS+= -I${.CURDIR}/ld128 | ||||
.endif | .endif | ||||
CFLAGS+= -I${.CURDIR}/${ARCH_SUBDIR} | CFLAGS+= -I${.CURDIR}/${ARCH_SUBDIR} | ||||
.include <bsd.compiler.mk> | |||||
.if ${COMPILER_TYPE} == "clang" && ${COMPILER_VERSION} >= 100000 | |||||
# When using clang with x86_64 CPUs that support AVX, some floating point | |||||
# transformations may raise exceptions that would not have been raised by the | |||||
# original code. To avoid this, use the -fp-exception-behavior=maytrap flag, | |||||
# introduced in clang 10.0.0. | |||||
# See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=254911 | |||||
CFLAGS+= -ffp-exception-behavior=maytrap | |||||
.endif | |||||
.PATH: ${.CURDIR}/bsdsrc | .PATH: ${.CURDIR}/bsdsrc | ||||
.PATH: ${.CURDIR}/src | .PATH: ${.CURDIR}/src | ||||
.PATH: ${.CURDIR}/man | .PATH: ${.CURDIR}/man | ||||
LIB= m | LIB= m | ||||
SHLIBDIR?= /lib | SHLIBDIR?= /lib | ||||
SHLIB_MAJOR= 5 | SHLIB_MAJOR= 5 | ||||
WARNS?= 1 | WARNS?= 1 | ||||
▲ Show 20 Lines • Show All 63 Lines • ▼ Show 20 Lines | COMMON_SRCS+= catrigl.c \ | ||||
s_nextafterl.c s_nexttoward.c s_remquol.c s_rintl.c s_roundl.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_scalbnl.c s_sinl.c s_sincosl.c \ | ||||
s_tanhl.c s_tanl.c s_truncl.c w_cabsl.c | s_tanhl.c s_tanl.c s_truncl.c w_cabsl.c | ||||
# Work around this warning from gcc: | # Work around this warning from gcc: | ||||
# lib/msun/ld80/e_powl.c:275:1: error: floating constant exceeds range of | # lib/msun/ld80/e_powl.c:275:1: error: floating constant exceeds range of | ||||
# 'long double' [-Werror=overflow] | # 'long double' [-Werror=overflow] | ||||
# if( y >= LDBL_MAX ) | # if( y >= LDBL_MAX ) | ||||
# See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=130067 | # See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=130067 | ||||
.include <bsd.compiler.mk> | |||||
.if ${COMPILER_TYPE} == "gcc" | .if ${COMPILER_TYPE} == "gcc" | ||||
CFLAGS.e_powl.c+= -Wno-error=overflow | CFLAGS.e_powl.c+= -Wno-error=overflow | ||||
.endif | .endif | ||||
.endif | .endif | ||||
# C99 complex functions | # C99 complex functions | ||||
COMMON_SRCS+= catrig.c catrigf.c \ | COMMON_SRCS+= catrig.c catrigf.c \ | ||||
s_ccosh.c s_ccoshf.c s_cexp.c s_cexpf.c \ | s_ccosh.c s_ccoshf.c s_cexp.c s_cexpf.c \ | ||||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |