about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog19
-rw-r--r--bits/mathdef.h6
-rw-r--r--math/atest-exp.c6
-rw-r--r--math/atest-exp2.c10
-rw-r--r--math/atest-sincos.c6
-rw-r--r--math/test-fenv.c2
-rw-r--r--sysdeps/alpha/fpu/bits/mathdef.h6
-rw-r--r--sysdeps/arm/fpu/bits/mathdef.h6
-rw-r--r--sysdeps/generic/bits/mathdef.h6
-rw-r--r--sysdeps/i386/fpu/bits/mathdef.h6
-rw-r--r--sysdeps/ia64/fpu/bits/mathdef.h6
-rw-r--r--sysdeps/m68k/fpu/bits/mathdef.h6
-rw-r--r--sysdeps/powerpc/fpu/bits/mathdef.h9
-rw-r--r--sysdeps/sh/sh4/fpu/bits/mathdef.h14
-rw-r--r--sysdeps/sparc/fpu/bits/mathdef.h12
15 files changed, 32 insertions, 88 deletions
diff --git a/ChangeLog b/ChangeLog
index ebb0ace4c6..b3cd9df08a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,24 @@
+2000-12-04  Ulrich Drepper  <drepper@redhat.com>
+
+	* sysdeps/alpha/fpu/bits/mathdef.h: Remove FLT_EVAL_METHOD and
+	DECIMAL_DIG definitions.
+	* sysdeps/arm/fpu/bits/mathdef.h: Likewise
+	* sysdeps/generic/bits/mathdef.h: Likewise
+	* sysdeps/i386/fpu/bits/mathdef.h: Likewise
+	* sysdeps/ia64/fpu/bits/mathdef.h: Likewise
+	* sysdeps/m68k/fpu/bits/mathdef.h: Likewise
+	* sysdeps/powerpc/fpu/bits/mathdef.h: Likewise
+	* sysdeps/sparc/fpu/bits/mathdef.h: Likewise
+	* sysdeps/sh/sh4/fpu/bits/mathdef.h: Likewise
+
 2000-12-03  Ulrich Drepper  <drepper@redhat.com>
 
+	* math/test-fenv.c (main): Use return instead of exit to avoid warning.
+
+	* math/atest-exp.c: Mark local functions as static to avoid warnings.
+	* math/atest-exp2.c: Likewise.
+	* math/atest-sincos.c: Likewise.
+
 	* sysdeps/i386/fpu/bits/mathdef.h (DECIMAL_DIG): Correct value.
 	Reported by Fred J. Tydeman <tydeman@tybor.com>.
 
diff --git a/bits/mathdef.h b/bits/mathdef.h
index ad465a9081..20fe35ff50 100644
--- a/bits/mathdef.h
+++ b/bits/mathdef.h
@@ -30,9 +30,6 @@ typedef double float_t;		/* `float' expressions are evaluated as
 typedef double double_t;	/* `double' expressions are evaluated as
 				   `double'.  */
 
-/* Signal that both types are `double'.  */
-# define FLT_EVAL_METHOD	1
-
 /* Define `INFINITY' as value of type `float'.  */
 # define INFINITY	HUGE_VALF
 
@@ -41,9 +38,6 @@ typedef double double_t;	/* `double' expressions are evaluated as
 # define FP_ILOGB0	(-2147483647)
 # define FP_ILOGBNAN	2147483647
 
-/* Number of decimal digits for the `double' type.  */
-# define DECIMAL_DIG	15
-
 #endif	/* ISO C99 */
 
 #ifndef __NO_LONG_DOUBLE_MATH
diff --git a/math/atest-exp.c b/math/atest-exp.c
index fcb4e0cd16..677d19239f 100644
--- a/math/atest-exp.c
+++ b/math/atest-exp.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Geoffrey Keating <Geoff.Keating@anu.edu.au>, 1997.
 
@@ -40,7 +40,7 @@ static const char exp1[102] = "2" /* point */
 "84d9045190cfef324e7738926cfbe5f4bf8d8d8c31d763da07";
 static const char hexdig[] = "0123456789abcdef";
 
-void
+static void
 print_mpn_hex (const mp_limb_t *x, unsigned size)
 {
    char value[size + 1];
@@ -56,7 +56,7 @@ print_mpn_hex (const mp_limb_t *x, unsigned size)
    fputs (value, stdout);
 }
 
-void
+static void
 exp_mpn (mp1 ex, mp1 x)
 {
    unsigned n;
diff --git a/math/atest-exp2.c b/math/atest-exp2.c
index 9bea07a391..6a17039ecd 100644
--- a/math/atest-exp2.c
+++ b/math/atest-exp2.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Geoffrey Keating <Geoff.Keating@anu.edu.au>, 1997.
 
@@ -45,7 +45,7 @@ static const char exp_m1[102] = "0" /* point */
 
 static const char hexdig[] = "0123456789abcdef";
 
-void
+static void
 print_mpn_fp (const mp_limb_t *x, unsigned int dp, unsigned int base)
 {
    unsigned int i;
@@ -66,7 +66,7 @@ print_mpn_fp (const mp_limb_t *x, unsigned int dp, unsigned int base)
      }
 }
 
-void
+static void
 read_mpn_hex(mp_limb_t *x, const char *str)
 {
   int i;
@@ -96,7 +96,7 @@ get_log2(void)
 }
 
 /* Compute e^x.  */
-void
+static void
 exp_mpn (mp1 ex, mp1 x)
 {
    unsigned int n;
@@ -130,7 +130,7 @@ exp_mpn (mp1 ex, mp1 x)
 }
 
 /* Calculate 2^x.  */
-void
+static void
 exp2_mpn (mp1 ex, mp1 x)
 {
   mp2 tmp;
diff --git a/math/atest-sincos.c b/math/atest-sincos.c
index 9fd474a2b2..b07dea393e 100644
--- a/math/atest-sincos.c
+++ b/math/atest-sincos.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Geoffrey Keating <Geoff.Keating@anu.edu.au>, 1997.
 
@@ -43,7 +43,7 @@ static const char cos1[101] =
 "300240b760e6fa96a94430a52d0e9e43f3450e3b8ff99bc934";
 static const char hexdig[] = "0123456789abcdef";
 
-void
+static void
 print_mpn_hex (const mp_limb_t *x, unsigned size)
 {
    char value[size + 1];
@@ -59,7 +59,7 @@ print_mpn_hex (const mp_limb_t *x, unsigned size)
    fputs (value, stdout);
 }
 
-void
+static void
 sincosx_mpn (mp1 si, mp1 co, mp1 xx, mp1 ix)
 {
    int i;
diff --git a/math/test-fenv.c b/math/test-fenv.c
index c369fc0aaa..520a7a182f 100644
--- a/math/test-fenv.c
+++ b/math/test-fenv.c
@@ -657,5 +657,5 @@ main (void)
       exit (1);
     }
   printf ("\n All tests passed successfully.\n");
-  exit (0);
+  return 0;
 }
diff --git a/sysdeps/alpha/fpu/bits/mathdef.h b/sysdeps/alpha/fpu/bits/mathdef.h
index 3b80e82475..2750af8cd8 100644
--- a/sysdeps/alpha/fpu/bits/mathdef.h
+++ b/sysdeps/alpha/fpu/bits/mathdef.h
@@ -58,9 +58,6 @@ typedef double double_t;
 typedef double float_t;
 typedef double double_t;
 
-/* Strange compiler, we don't know how it works.  */
-#  define FLT_EVAL_METHOD	-1
-
 /* Define `INFINITY' as value of type `float'.  */
 #  define INFINITY	HUGE_VALF
 
@@ -70,9 +67,6 @@ typedef double double_t;
 # define FP_ILOGB0     (-2147483647)
 # define FP_ILOGBNAN   (2147483647)
 
-/* Number of decimal digits for the `double' type.  */
-# define DECIMAL_DIG	15
-
 #endif	/* ISO C99 */
 
 #ifndef __NO_LONG_DOUBLE_MATH
diff --git a/sysdeps/arm/fpu/bits/mathdef.h b/sysdeps/arm/fpu/bits/mathdef.h
index 374ad674c3..426fec7247 100644
--- a/sysdeps/arm/fpu/bits/mathdef.h
+++ b/sysdeps/arm/fpu/bits/mathdef.h
@@ -29,9 +29,6 @@ typedef float float_t;		/* `float' expressions are evaluated as
 typedef double double_t;	/* `double' expressions are evaluated as
 				   `double'.  */
 
-/* Signal that types stay as they were declared.  */
-# define FLT_EVAL_METHOD	0
-
 /* Define `INFINITY' as value of type `float'.  */
 # define INFINITY	HUGE_VALF
 
@@ -40,9 +37,6 @@ typedef double double_t;	/* `double' expressions are evaluated as
 # define FP_ILOGB0	(-2147483647)
 # define FP_ILOGBNAN	(2147483647)
 
-/* Number of decimal digits for the `double' type.  */
-# define DECIMAL_DIG	15
-
 #endif	/* ISO C99 */
 
 #ifndef __NO_LONG_DOUBLE_MATH
diff --git a/sysdeps/generic/bits/mathdef.h b/sysdeps/generic/bits/mathdef.h
index ad465a9081..20fe35ff50 100644
--- a/sysdeps/generic/bits/mathdef.h
+++ b/sysdeps/generic/bits/mathdef.h
@@ -30,9 +30,6 @@ typedef double float_t;		/* `float' expressions are evaluated as
 typedef double double_t;	/* `double' expressions are evaluated as
 				   `double'.  */
 
-/* Signal that both types are `double'.  */
-# define FLT_EVAL_METHOD	1
-
 /* Define `INFINITY' as value of type `float'.  */
 # define INFINITY	HUGE_VALF
 
@@ -41,9 +38,6 @@ typedef double double_t;	/* `double' expressions are evaluated as
 # define FP_ILOGB0	(-2147483647)
 # define FP_ILOGBNAN	2147483647
 
-/* Number of decimal digits for the `double' type.  */
-# define DECIMAL_DIG	15
-
 #endif	/* ISO C99 */
 
 #ifndef __NO_LONG_DOUBLE_MATH
diff --git a/sysdeps/i386/fpu/bits/mathdef.h b/sysdeps/i386/fpu/bits/mathdef.h
index 8301db55e0..6dc05d6f1a 100644
--- a/sysdeps/i386/fpu/bits/mathdef.h
+++ b/sysdeps/i386/fpu/bits/mathdef.h
@@ -31,9 +31,6 @@ typedef long double float_t;	/* `float' expressions are evaluated as
 typedef long double double_t;	/* `double' expressions are evaluated as
 				   `long double'.  */
 
-/* Signal that both types are `long double'.  */
-# define FLT_EVAL_METHOD	2
-
 /* Define `INFINITY' as value of type `float'.  */
 # define INFINITY	HUGE_VALF
 
@@ -41,7 +38,4 @@ typedef long double double_t;	/* `double' expressions are evaluated as
 # define FP_ILOGB0	(-2147483647 - 1)
 # define FP_ILOGBNAN	(-2147483647 - 1)
 
-/* Number of decimal digits for the `long double' type.  */
-# define DECIMAL_DIG	21
-
 #endif	/* ISO C99 */
diff --git a/sysdeps/ia64/fpu/bits/mathdef.h b/sysdeps/ia64/fpu/bits/mathdef.h
index bd2ce5d262..90c1e89f87 100644
--- a/sysdeps/ia64/fpu/bits/mathdef.h
+++ b/sysdeps/ia64/fpu/bits/mathdef.h
@@ -31,9 +31,6 @@ typedef long double float_t;	/* `float' expressions are evaluated as
 typedef long double double_t;	/* `double' expressions are evaluated as
 				   `long double'.  */
 
-/* Signal that both types are `long double'.  */
-# define FLT_EVAL_METHOD	2
-
 /* Define `INFINITY' as value of type `float'.  */
 # define INFINITY	HUGE_VALF
 
@@ -41,7 +38,4 @@ typedef long double double_t;	/* `double' expressions are evaluated as
 # define FP_ILOGB0	(-2147483647 - 1)
 # define FP_ILOGBNAN	(-2147483647 - 1)
 
-/* Number of decimal digits for the `long double' type.  */
-# define DECIMAL_DIG	18
-
 #endif	/* ISO C99 */
diff --git a/sysdeps/m68k/fpu/bits/mathdef.h b/sysdeps/m68k/fpu/bits/mathdef.h
index c3365a7ff2..4eec5d8cc4 100644
--- a/sysdeps/m68k/fpu/bits/mathdef.h
+++ b/sysdeps/m68k/fpu/bits/mathdef.h
@@ -31,9 +31,6 @@ typedef long double float_t;	/* `float' expressions are evaluated as
 typedef long double double_t;	/* `double' expressions are evaluated as
 				   `long double'.  */
 
-/* Signal that both types are `long double'.  */
-# define FLT_EVAL_METHOD	2
-
 /* Define `INFINITY' as value of type `float'.  */
 # define INFINITY	HUGE_VALF
 
@@ -41,7 +38,4 @@ typedef long double double_t;	/* `double' expressions are evaluated as
 # define FP_ILOGB0	(-2147483647 - 1)
 # define FP_ILOGBNAN	(2147483647)
 
-/* Number of decimal digits for the `long double' type.  */
-# define DECIMAL_DIG	18
-
 #endif	/* ISO C99 */
diff --git a/sysdeps/powerpc/fpu/bits/mathdef.h b/sysdeps/powerpc/fpu/bits/mathdef.h
index 4c61fbea1e..54fa01f0b8 100644
--- a/sysdeps/powerpc/fpu/bits/mathdef.h
+++ b/sysdeps/powerpc/fpu/bits/mathdef.h
@@ -53,9 +53,6 @@ typedef double float_t;		/* `float' expressions are evaluated as
 typedef double double_t;	/* `double' expressions are evaluated as
 				   `double'.  */
 
-/* Signal that both types are `double'.  */
-#   define FLT_EVAL_METHOD	1
-
 /* Define `INFINITY' as value of type `float'.  */
 #   define INFINITY	HUGE_VALF
 
@@ -66,9 +63,6 @@ typedef double double_t;	/* `double' expressions are evaluated as
 typedef double float_t;
 typedef double double_t;
 
-/* Strange compiler, we don't know how it works.  */
-#  define FLT_EVAL_METHOD	-1
-
 /* Define `INFINITY' as value of type `float'.  */
 #  define INFINITY	HUGE_VALF
 
@@ -78,9 +72,6 @@ typedef double double_t;
 # define FP_ILOGB0	(-2147483647)
 # define FP_ILOGBNAN	(2147483647)
 
-/* Number of decimal digits for the `double' type.  */
-# define DECIMAL_DIG	15
-
 #endif	/* ISO C99 */
 
 #ifndef __NO_LONG_DOUBLE_MATH
diff --git a/sysdeps/sh/sh4/fpu/bits/mathdef.h b/sysdeps/sh/sh4/fpu/bits/mathdef.h
index 577a596843..5f6758f18a 100644
--- a/sysdeps/sh/sh4/fpu/bits/mathdef.h
+++ b/sysdeps/sh/sh4/fpu/bits/mathdef.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -39,9 +39,6 @@ typedef float float_t;		/* `float' expressions are evaluated as
 typedef double double_t;	/* `double' expressions are evaluated as
 				   `double'.  */
 
-/* Signal that types stay as they were declared.  */
-#   define FLT_EVAL_METHOD	0
-
 /* Define `INFINITY' as value of type `float'.  */
 #   define INFINITY	HUGE_VALF
 
@@ -53,9 +50,6 @@ typedef double float_t;		/* `float' expressions are evaluated as
 typedef double double_t;	/* `double' expressions are evaluated as
 				   `double'.  */
 
-/* Signal that both types are `double'.  */
-#   define FLT_EVAL_METHOD	1
-
 /* Define `INFINITY' as value of type `float'.  */
 #   define INFINITY	HUGE_VALF
 
@@ -66,9 +60,6 @@ typedef double double_t;	/* `double' expressions are evaluated as
 typedef double float_t;
 typedef double double_t;
 
-/* Strange compiler, we don't know how it works.  */
-#  define FLT_EVAL_METHOD	-1
-
 /* Define `INFINITY' as value of type `float'.  */
 #  define INFINITY	HUGE_VALF
 
@@ -78,9 +69,6 @@ typedef double double_t;
 # define FP_ILOGB0	0x80000001
 # define FP_ILOGBNAN	0x7fffffff
 
-/* Number of decimal digits for the `double' type.  */
-# define DECIMAL_DIG	15
-
 #endif	/* ISO C99 */
 
 #ifndef __NO_LONG_DOUBLE_MATH
diff --git a/sysdeps/sparc/fpu/bits/mathdef.h b/sysdeps/sparc/fpu/bits/mathdef.h
index 0f73b298fd..5a7d739a20 100644
--- a/sysdeps/sparc/fpu/bits/mathdef.h
+++ b/sysdeps/sparc/fpu/bits/mathdef.h
@@ -35,9 +35,6 @@
 typedef float float_t;
 typedef double double_t;
 
-/* Signal that types stay as they were declared.  */
-#   define FLT_EVAL_METHOD	0
-
 /* Define `INFINITY' as value of type `float'.  */
 #   define INFINITY	HUGE_VALF
 
@@ -47,9 +44,6 @@ typedef double double_t;
 typedef double float_t;
 typedef double double_t;
 
-/* Signal that both types are `double'.  */
-#   define FLT_EVAL_METHOD	1
-
 /* Define `INFINITY' as value of type `float'.  */
 #   define INFINITY	HUGE_VALF
 
@@ -60,9 +54,6 @@ typedef double double_t;
 typedef double float_t;
 typedef double double_t;
 
-/* Strange compiler, we don't know how it works.  */
-#  define FLT_EVAL_METHOD	-1
-
 /* Define `INFINITY' as value of type `float'.  */
 #  define INFINITY	HUGE_VALF
 
@@ -72,9 +63,6 @@ typedef double double_t;
 # define FP_ILOGB0       (-2147483647)
 # define FP_ILOGBNAN     (2147483647)
 
-/* Number of decimal digits for the `double' type.  */
-# define DECIMAL_DIG	15
-
 #endif	/* ISO C99 */
 
 #ifndef __NO_LONG_DOUBLE_MATH