Module Name: src Committed By: he Date: Fri Aug 11 20:24:56 UTC 2017
Modified Files: src/lib/libm: Makefile Log Message: Move s_nearbyint.c out of the cpu ifdefs and into COMMON_SRCS, which is used everywhere except on vax. This is to simplify and to ensure the function is included in the build, allowing us to re-add the nearbyint() test. To generate a diff of this commit: cvs rdiff -u -r1.195 -r1.196 src/lib/libm/Makefile Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libm/Makefile diff -u src/lib/libm/Makefile:1.195 src/lib/libm/Makefile:1.196 --- src/lib/libm/Makefile:1.195 Thu Jul 27 10:03:10 2017 +++ src/lib/libm/Makefile Fri Aug 11 20:24:56 2017 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.195 2017/07/27 10:03:10 he Exp $ +# $NetBSD: Makefile,v 1.196 2017/08/11 20:24:56 he Exp $ # # @(#)Makefile 5.1beta 93/09/24 # @@ -66,7 +66,7 @@ COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c .elif (${LIBC_MACHINE_ARCH} == "alpha") .PATH: ${.CURDIR}/arch/alpha ARCH_SRCS = s_copysign.S s_copysignf.S lrint.S -COMMON_SRCS+= fenv.c s_nearbyint.c +COMMON_SRCS+= fenv.c COPTS+= -mfloat-ieee -mieee-with-inexact -mfp-trap-mode=sui -mtrap-precision=i .elif (${LIBC_MACHINE_CPU} == "arm") @@ -74,7 +74,7 @@ COPTS+= -mfloat-ieee -mieee-with-inexact .if ${MKSOFTFLOAT} == "no" COMMON_SRCS+= fenv.c .endif -COMMON_SRCS+= s_nexttowardf.c s_nearbyint.c s_rintl.c +COMMON_SRCS+= s_nexttowardf.c s_rintl.c .for f in fenv.c lrint.S lrintf.S s_fabsf.S s_fma.S s_fmaf.S COPTS.$f += -mfpu=vfp .endfor @@ -86,21 +86,21 @@ ARCH_SRCS = e_sqrt.S e_sqrtf.S lrint.S l .elif (${LIBC_MACHINE_ARCH} == "ia64") .PATH: ${.CURDIR}/arch/ia64 -COMMON_SRCS += fenv.c s_nearbyint.c +COMMON_SRCS += fenv.c .elif (${LIBC_MACHINE_ARCH} == "hppa") .PATH.c: ${.CURDIR}/arch/hppa -COMMON_SRCS+= fenv.c s_nexttowardf.c s_nearbyint.c s_rintl.c +COMMON_SRCS+= fenv.c s_nexttowardf.c s_rintl.c .elif (${LIBC_MACHINE_ARCH} == "sparc") .PATH: ${.CURDIR}/arch/sparc -COMMON_SRCS+= fenv.c s_nearbyint.c +COMMON_SRCS+= fenv.c COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c .elif (${LIBC_MACHINE_ARCH} == "sparc64") .PATH: ${.CURDIR}/arch/sparc64 COMMON_SRCS+= fenv.c -COMMON_SRCS+= s_nexttowardf.c s_nearbyint.c s_rintl.c +COMMON_SRCS+= s_nexttowardf.c s_rintl.c .ifndef _COMPAT_M32_MK_ COMMON_SRCS+= s_nexttoward.c .endif @@ -114,8 +114,7 @@ COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c .endif .PATH: ${.CURDIR}/arch/i387 -COMMON_SRCS+= fenv.c s_nexttoward.c s_nexttowardf.c \ - s_nearbyint.c s_rintl.c +COMMON_SRCS+= fenv.c s_nexttoward.c s_nexttowardf.c s_rintl.c COMMON_SRCS+= s_fma.c s_fmaf.c s_fmal.c ARCH_SRCS = e_acos.S e_asin.S e_atan2.S e_exp.S e_expf.S e_fmod.S e_log.S \ @@ -154,7 +153,7 @@ ARCH_SRCS = e_acos.S e_asin.S e_atanh.S e_log10.S e_remainder.S e_scalb.S e_sinh.S e_sqrt.S s_atan.S \ s_ceil.S s_copysign.S s_cos.S s_expm1.S s_finite.S s_floor.S \ s_log1p.S s_logb.S s_rint.S s_scalbn.S s_sin.S s_tan.S s_tanh.S -COMMON_SRCS += fenv.c s_nearbyint.c s_rintl.c +COMMON_SRCS += fenv.c s_rintl.c .endif .endif # end of m68k @@ -174,7 +173,7 @@ WARNS?=5 .PATH: ${.CURDIR}/arch/riscv .if ${MKSOFTFLOAT} == "no" -COMMON_SRCS += fenv.c s_nearbyint.c +COMMON_SRCS += fenv.c ARCH_SRCS = e_sqrt.S e_sqrtf.S ARCH_SRCS += s_copysign.S s_copysignf.S ARCH_SRCS += s_fabs.S s_fabsf.S @@ -186,19 +185,19 @@ ARCH_SRCS += s_fmin.S s_fminf.S .elif (${LIBC_MACHINE_ARCH} == "powerpc") .PATH: ${.CURDIR}/arch/powerpc .if ${MKSOFTFLOAT} == "no" -COMMON_SRCS += fenv.c s_nearbyint.c +COMMON_SRCS += fenv.c .endif .elif (${LIBC_MACHINE_CPU} == "mips") .PATH: ${.CURDIR}/arch/mips .if ${MKSOFTFLOAT} == "no" -COMMON_SRCS += fenv.c s_nearbyint.c +COMMON_SRCS += fenv.c .endif .elif (${LIBC_MACHINE_CPU} == "sh3") .PATH: ${.CURDIR}/arch/sh3 .if ${MKSOFTFLOAT} == "no" -COMMON_SRCS += fenv.c s_nearbyint.c +COMMON_SRCS += fenv.c .endif .endif # End of list of CPU tests @@ -267,7 +266,7 @@ COMMON_SRCS+= b_exp.c b_log.c b_tgamma.c s_lrint.c s_lrintf.c s_lrintl.c \ s_lround.c s_lroundf.c s_lroundl.c \ s_log1pf.c s_logb.c s_logbf.c s_logbl.c \ - s_matherr.c s_modff.c s_modfl.c s_nextafter.c s_nextafterl.c \ + s_matherr.c s_modff.c s_modfl.c s_nearbyint.c s_nextafter.c s_nextafterl.c \ s_nextafterf.c s_remquo.c s_remquof.c s_rint.c s_rintf.c \ s_round.c s_roundf.c s_roundl.c s_scalbn.c \ s_scalbnf.c s_scalbnl.c s_signgam.c s_significand.c s_significandf.c s_sin.c \