]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix types of FE_DFL_ENV and FE_NOMASK_ENV (bug 14805).
authorJoseph Myers <joseph@codesourcery.com>
Mon, 5 Nov 2012 13:38:40 +0000 (13:38 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Mon, 5 Nov 2012 13:38:40 +0000 (13:38 +0000)
ChangeLog
ports/ChangeLog.arm
ports/ChangeLog.hppa
ports/sysdeps/arm/bits/fenv.h
ports/sysdeps/hppa/fpu/bits/fenv.h
sysdeps/sh/sh4/fpu/bits/fenv.h

index fdd4a5a2382b3fa689da71645dcb4eef8eee155c..3ff693729de67bc50bdbdfbebad75399a0b4b8e0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
 
+       [BZ #14805]
+       * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
+       fenv_t *.
+
        [BZ #14801]
        * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
        namespace for names of struct fields.
index 234883e17acc0d2567d509363c50eb8d564b4533..c0e9ac28f558beafa62a09a02b1f707b9a7fa931 100644 (file)
@@ -1,3 +1,8 @@
+2012-11-05  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #14805]
+       * sysdeps/arm/bits/fenv.h (FE_DFL_ENV): Use cast to const fenv_t *.
+
 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/arm/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
index 3e8d522a07f7369ece43f1185bfd67521cd5e061..201dd01def080091539982ce4aed1f08f9feaecc 100644 (file)
@@ -1,3 +1,10 @@
+2012-11-05  Joseph Myers  <joseph@codesourcery.com>
+
+       [BZ #14805]
+       * sysdeps/hppa/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
+       fenv_t *.
+       (FE_NOMASK_ENV): Likewise.
+
 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
 
        * sysdeps/hppa/fpu/fclrexcpt.c (feclearexcept): Add
index 6788e288af4f6532688de4e2cf25c8d2f53fd5e4..bc4a3ee533066ff7cdb0af54820d00fbc3efb079 100644 (file)
@@ -74,7 +74,7 @@ typedef struct
 fenv_t;
 
 /* If the default argument is used we use this value.  */
-#define FE_DFL_ENV     ((fenv_t *) -1l)
+#define FE_DFL_ENV     ((const fenv_t *) -1l)
 
 #ifdef __USE_GNU
 /* Floating-point environment where none of the exceptions are masked.  */
index 0618b1bb84dd7b66773ec5757ad24f434b071d2a..49e30185afb1db389bce3f2cbed39f50111cae5e 100644 (file)
@@ -83,9 +83,9 @@ typedef struct
 } fenv_t;
 
 /* If the default argument is used we use this value.  */
-#define FE_DFL_ENV ((fenv_t *) -1)
+#define FE_DFL_ENV ((const fenv_t *) -1)
 
 #ifdef __USE_GNU
 /* Floating-point environment where none of the exceptions are masked.  */
-# define FE_NOMASK_ENV ((fenv_t *) -2)
+# define FE_NOMASK_ENV ((const fenv_t *) -2)
 #endif
index e51a057cb5d3c3685c57db698c8ec020340c4a06..a29edfc1f48a2b3999b0ab03e061750bd3d5f0bb 100644 (file)
@@ -73,4 +73,4 @@ typedef struct
 fenv_t;
 
 /* If the default argument is used we use this value.  */
-#define FE_DFL_ENV     ((fenv_t *) -1)
+#define FE_DFL_ENV     ((const fenv_t *) -1)