ia64: convert __const to const
authorMike Frysinger <vapier@gentoo.org>
Tue, 17 Apr 2012 02:21:32 +0000 (22:21 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Apr 2012 03:08:17 +0000 (23:08 -0400)
The main tree decided to drop support for pre-ISO C code, so we
can use "const" instead of "__const".

Processed with a simple sed script:

find `find sysdeps/ -name ia64` -type f -exec sed -i \
's:\<__const\>:const:' {} +

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ChangeLog.ia64
sysdeps/ia64/bits/fenv.h
sysdeps/unix/sysv/linux/ia64/swapcontext.c

index f48cbf907272c8a5451edfbb62fb8a6a0d28e69d..6bdca2cf0b9c6b21565076766d0cd8c723ac9423 100644 (file)
@@ -1,3 +1,8 @@
+2012-04-27  Mike Frysinger  <vapier@gentoo.org>
+
+       * sysdeps/ia64/bits/fenv.h: Change __const to const.
+       * sysdeps/unix/sysv/linux/ia64/swapcontext.c: Likewise.
+
 2012-04-27  Mike Frysinger  <vapier@gentoo.org>
 
        * sysdeps/ia64/fpu/s_matherrf.c: Change "math.h" and "math_private.h"
index 0422a95d7e7718c02e97335c7fe6bfba5d5c4b2d..342605d8ceb06a73c2c4823eb14fa3a861865e29 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1999-2012 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
@@ -72,15 +72,15 @@ typedef unsigned long int fexcept_t;
 typedef unsigned long int fenv_t;
 
 /* If the default argument is used we use this value.  */
-#define FE_DFL_ENV     ((__const fenv_t *) 0xc009804c0270033fUL)
+#define FE_DFL_ENV     ((const fenv_t *) 0xc009804c0270033fUL)
 
 #ifdef __USE_GNU
 /* Floating-point environment where only FE_UNNORMAL is masked since this
    exception is not generally supported by glibc.  */
-# define FE_NOMASK_ENV ((__const fenv_t *) 0xc009804c02700302UL)
+# define FE_NOMASK_ENV ((const fenv_t *) 0xc009804c02700302UL)
 
 /* Floating-point environment with (processor-dependent) non-IEEE
    floating point.  In this case, turning on flush-to-zero mode for
    s0, s2, and s3.  */
-# define FE_NONIEEE_ENV ((__const fenv_t *) 0xc009a04d0270037fUL)
+# define FE_NONIEEE_ENV ((const fenv_t *) 0xc009a04d0270037fUL)
 #endif
index 2ccc2eea962a3dc6f65d557ac62437786ea0a0a2..20a20ac2baa3317f1830e8ebcced46cdc92cceee 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2001-2012 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
      Contributed by David Mosberger-Tang <davidm@hpl.hp.com>.
 
@@ -25,7 +25,7 @@ struct rv
   };
 
 extern struct rv __getcontext (ucontext_t *__ucp) __THROW;
-extern int __setcontext (__const ucontext_t *__ucp) __THROW;
+extern int __setcontext (const ucontext_t *__ucp) __THROW;
 
 int
 __swapcontext (ucontext_t *oucp, const ucontext_t *ucp)