From d48e59d98078e31ba01f7f284cc16a5451c6ab6e Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Wed, 22 Mar 2006 20:00:25 +0000 Subject: Guard matherr/__kernel_standard w/ _IEEE_LIBM, we do not use them, save 7,6k --- libm/Makefile.in | 2 +- libm/k_standard.c | 3 +++ libm/math_private.h | 2 ++ libm/s_matherr.c | 3 +++ 4 files changed, 9 insertions(+), 1 deletion(-) diff --git a/libm/Makefile.in b/libm/Makefile.in index 6b07fe43f..316b1ffc3 100644 --- a/libm/Makefile.in +++ b/libm/Makefile.in @@ -21,7 +21,7 @@ # CFLAGS-libm := -DNOT_IN_libc -DIS_IN_libm $(SSP_ALL_CFLAGS) -CFLAGS-libm += -D_IEEE_LIBM -D_ISOC99_SOURCE -D_SVID_SOURCE +CFLAGS-libm += -D_IEEE_LIBM LDFLAGS-libm.so := $(LDFLAGS) diff --git a/libm/k_standard.c b/libm/k_standard.c index 30d83e3ca..4df189853 100644 --- a/libm/k_standard.c +++ b/libm/k_standard.c @@ -18,6 +18,8 @@ static char rcsid[] = "$NetBSD: k_standard.c,v 1.6 1995/05/10 20:46:35 jtc Exp $ #include "math_private.h" #include +#ifndef _IEEE_LIBM + libm_hidden_proto(copysign) libm_hidden_proto(matherr) libm_hidden_proto(rint) @@ -784,3 +786,4 @@ static double zero = 0.0; /* used as const */ } return exc.retval; } +#endif /* _IEEE_LIBM */ diff --git a/libm/math_private.h b/libm/math_private.h index 30af9ede5..75ca03ecb 100644 --- a/libm/math_private.h +++ b/libm/math_private.h @@ -186,7 +186,9 @@ extern double __ieee754_scalb (double,double) attribute_hidden; #endif /* fdlibm kernel function */ +#ifndef _IEEE_LIBM extern double __kernel_standard (double,double,int) attribute_hidden; +#endif extern double __kernel_sin (double,double,int) attribute_hidden; extern double __kernel_cos (double,double) attribute_hidden; extern double __kernel_tan (double,double,int) attribute_hidden; diff --git a/libm/s_matherr.c b/libm/s_matherr.c index 8c19f43bb..0c102e628 100644 --- a/libm/s_matherr.c +++ b/libm/s_matherr.c @@ -17,6 +17,8 @@ static char rcsid[] = "$NetBSD: s_matherr.c,v 1.6 1995/05/10 20:47:53 jtc Exp $" #include "math.h" #include "math_private.h" +#ifndef _IEEE_LIBM + libm_hidden_proto(matherr) #ifdef __STDC__ int matherr(struct exception *x) @@ -30,3 +32,4 @@ libm_hidden_proto(matherr) return n; } libm_hidden_def(matherr) +#endif -- cgit v1.2.3