]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Always define float_t as float for PowerPC, SH and SPARC.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 31 Jan 2012 22:57:02 +0000 (22:57 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 31 Jan 2012 22:57:02 +0000 (22:57 +0000)
ChangeLog
sysdeps/powerpc/bits/mathdef.h
sysdeps/sh/sh4/bits/mathdef.h
sysdeps/sparc/bits/mathdef.h

index 2ae7308223f353bc1f607a8abbea191b33147f93..a87f1e658dda624199d3cf83cd233214ceabf3bb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2012-01-31  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
+       float.
+       * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
+       * sysdeps/sparc/bits/mathdef.h: Likewise.
+
 2012-01-31  Marek Polacek  <polacek@redhat.com>
 
        * libio/libio.h: Don't define _PARAMS.
index 3a9b1b0459c406be82a329c9fad9cd681e35c8bb..c5eee15b72c25f0761e64ae06cc36ecd57c68d25 100644 (file)
 #if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
 # define _MATH_H_MATHDEF       1
 
-# ifdef __GNUC__
-
-/* gcc leaves `float' expressions as-is.  */
-typedef float float_t;         /* `float' expressions are evaluated as
-                                  `float'.  */
-typedef double double_t;       /* `double' expressions are evaluated as
-                                  `double'.  */
-
-# else
-
-/* Wild guess at types for float_t and double_t. */
-typedef double float_t;
+/* PowerPC has both `float' and `double' arithmetic.  */
+typedef float float_t;
 typedef double double_t;
 
-# endif
-
 /* The values returned by `ilogb' for 0 and NaN respectively.  */
 # define FP_ILOGB0     (-2147483647)
 # define FP_ILOGBNAN   (2147483647)
index 5b922349837319572ceb39e18227bab50e0657d0..74f76029b4a27433367bad642760b8b3a2d2e858 100644 (file)
 #if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
 # define _MATH_H_MATHDEF       1
 
-# ifdef __GNUC__
-
-/* gcc leaves `float' expressions as-is.  */
-typedef float float_t;         /* `float' expressions are evaluated as
-                                  `float'.  */
-typedef double double_t;       /* `double' expressions are evaluated as
-                                  `double'.  */
-
-# else
-
-/* Wild guess at types for float_t and double_t. */
-typedef double float_t;
+/* SH has both `float' and `double' arithmetic.  */
+typedef float float_t;
 typedef double double_t;
 
-# endif
-
 /* The values returned by `ilogb' for 0 and NaN respectively.  */
 # define FP_ILOGB0     0x80000001
 # define FP_ILOGBNAN   0x7fffffff
index 042c9c881baff5f091c56255ad59e05e4d748a08..cd1f85acc8c790124d149ee8ce5a2738f818c61e 100644 (file)
 #if defined __USE_ISOC99 && defined _MATH_H && !defined _MATH_H_MATHDEF
 # define _MATH_H_MATHDEF       1
 
-# ifdef __GNUC__
-
-/* gcc leaves `float' expressions as-is.  */
+/* SPARC has both `float' and `double' arithmetic.  */
 typedef float float_t;
 typedef double double_t;
 
-# else
-
-/* Wild guess at types for float_t and double_t. */
-typedef double float_t;
-typedef double double_t;
-
-# endif
-
 /* The values returned by `ilogb' for 0 and NaN respectively.  */
 # define FP_ILOGB0       (-2147483647)
 # define FP_ILOGBNAN     (2147483647)