]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Avoid use of "register" as optimization hint.
authorJoseph Myers <joseph@codesourcery.com>
Fri, 7 Jun 2013 22:24:35 +0000 (22:24 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Fri, 7 Jun 2013 22:24:35 +0000 (22:24 +0000)
79 files changed:
ChangeLog
bits/byteswap.h
crypt/crypt.c
debug/stpcpy_chk.c
debug/wcscat_chk.c
gmon/gmon.c
gmon/mcount.c
hurd/hurdmalloc.c
include/rpc/auth_des.h
inet/inet_lnaof.c
inet/inet_net.c
inet/inet_netof.c
inet/rcmd.c
io/fts.c
libio/fileops.c
libio/iofopncook.c
libio/oldfileops.c
libio/wfileops.c
mach/msgserver.c
malloc/obstack.c
misc/getttyent.c
misc/getusershell.c
misc/syslog.c
misc/ttyslot.c
nis/nis_hash.c
ports/ChangeLog.ia64
ports/sysdeps/ia64/bits/byteswap-16.h
ports/sysdeps/ia64/bits/byteswap.h
posix/fnmatch_loop.c
posix/getconf.c
posix/getopt.c
posix/glob.c
resolv/arpa/nameser.h
resolv/gethnamaddr.c
resolv/ns_print.c
resolv/nss_dns/dns-host.c
resolv/res_init.c
resolv/res_mkquery.c
stdio-common/printf_fp.c
stdio-common/printf_fphex.c
stdio-common/printf_size.c
stdio-common/test_rdwr.c
stdio-common/tfformat.c
stdio-common/vfprintf.c
stdio-common/vfscanf.c
stdio-common/xbug.c
stdlib/qsort.c
stdlib/setenv.c
stdlib/strtod_l.c
stdlib/strtol_l.c
stdlib/tst-strtod.c
stdlib/tst-strtol.c
stdlib/tst-strtoll.c
string/bits/string2.h
string/memccpy.c
string/stpcpy.c
string/strcmp.c
string/strrchr.c
sysdeps/generic/sigset-cvt-mask.h
sysdeps/mach/hurd/getcwd.c
sysdeps/mach/i386/sysdep.h
sysdeps/powerpc/powerpc32/power6/wcschr.c
sysdeps/powerpc/powerpc32/power6/wcsrchr.c
sysdeps/x86/bits/byteswap-16.h
sysdeps/x86/bits/byteswap.h
time/test_time.c
time/tzfile.c
time/tzset.c
wcsmbs/wcscat.c
wcsmbs/wcschr.c
wcsmbs/wcschrnul.c
wcsmbs/wcscspn.c
wcsmbs/wcspbrk.c
wcsmbs/wcsrchr.c
wcsmbs/wcsspn.c
wcsmbs/wcsstr.c
wcsmbs/wmemchr.c
wcsmbs/wmemcmp.c
wcsmbs/wmemset.c

index 0f6ec84f446a75837f8d916cc984b4303e187414..64374b032b98dcb46bfba8352f79d5b8a247f0c8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,148 @@
+2013-06-07  Joseph Myers  <joseph@codesourcery.com>
+
+       * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
+       (__bswap_32): Do not use "register".
+       * crypt/crypt.c (_ufc_doit_r): Likewise.
+       * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
+       * debug/wcscat_chk.c (__wcscat_chk): Likewise.
+       * gmon/gmon.c (__monstartup): Likewise.
+       * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
+       * hurd/hurdmalloc.c (more_memory): Likewise.
+       (malloc): Likewise.
+       (free): Likewise.
+       (realloc): Likewise.
+       (malloc_fork_prepare): Likewise.
+       (malloc_fork_parent): Likewise.
+       (malloc_fork_child): Likewise.
+       * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
+       (_svcauth_des): Likewise.
+       * inet/inet_lnaof.c (inet_lnaof): Likewise.
+       * inet/inet_net.c (inet_network): Likewise.
+       * inet/inet_netof.c (inet_netof): Likewise.
+       * inet/rcmd.c (__validuser2_sa): Likewise.
+       * io/fts.c (fts_open): Likewise.
+       (fts_load): Likewise.
+       (fts_close): Likewise.
+       (fts_read): Likewise.
+       (fts_children): Likewise.
+       (fts_build): Likewise.
+       (fts_stat): Likewise.
+       (fts_sort): Likewise.
+       (fts_alloc): Likewise.
+       (fts_lfree): Likewise.
+       * libio/fileops.c (_IO_new_file_xsputn): Likewise.
+       (_IO_file_xsgetn): Likewise.
+       (_IO_file_xsgetn_mmap): Likewise.
+       * libio/iofopncook.c (_IO_cookie_read): Likewise.
+       (_IO_cookie_write): Likewise.
+       * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
+       * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
+       * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
+       * malloc/obstack.c (_obstack_begin): Likewise.
+       (_obstack_begin_1): Likewise.
+       (_obstack_newchunk): Likewise.
+       (_obstack_allocated_p): Likewise.
+       (obstack_free): Likewise.
+       (_obstack_memory_used): Likewise.
+       * misc/getttyent.c (getttynam): Likewise.
+       (getttyent): Likewise.
+       (skip): Likewise.
+       (value): Likewise.
+       * misc/getusershell.c (initshells): Likewise.
+       * misc/syslog.c (__vsyslog_chk): Likewise.
+       * misc/ttyslot.c (ttyslot): Likewise.
+       * nis/nis_hash.c (__nis_hash): Likewise.
+       * posix/fnmatch_loop.c (FCT): Likewise.
+       * posix/getconf.c (print_all): Likewise.
+       (main): Likewise.
+       * posix/getopt.c (exchange): Likewise.
+       * posix/glob.c (globfree): Likewise.
+       (prefix_array): Likewise.
+       (__glob_pattern_type): Likewise.
+       * resolv/arpa/nameser.h (NS_GET16): Likewise.
+       (NS_GET32): Likewise.
+       (NS_PUT16): Likewise.
+       (NS_PUT32): Likewise.
+       * resolv/gethnamaddr.c (getanswer): Likewise.
+       (gethostbyname2): Likewise.
+       (gethostbyaddr): Likewise.
+       (_gethtent): Likewise.
+       (_gethtbyname2): Likewise.
+       (_gethtbyaddr): Likewise.
+       * resolv/ns_print.c (dst_s_get_int16): Likewise.
+       * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
+       * resolv/res_init.c (__res_vinit): Likewise.
+       (net_mask): Likewise.
+       * resolv/res_mkquery.c (outchar): Likewise.
+       (PRINT): Likewise.
+       * stdio-common/printf_fp.c (outchar): Likewise.
+       (PRINT): Likewise.
+       * stdio-common/printf_fphex.c (outchar): Likewise.
+       (PRINT): Likewise.
+       * stdio-common/printf_size.c (outchar): Likewise.
+       (PRINT): Likewise.
+       * stdio-common/test_rdwr.c (main): Likewise.
+       * stdio-common/tfformat.c (matches): Likewise.
+       * stdio-common/vfprintf.c (outchar): Likewise.
+       (printf_unknown): Likewise.
+       (buffered_vfprintf): Likewise.
+       * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
+       * stdio-common/xbug.c (AppendToBuffer): Likewise.
+       (ReadFile): Likewise.
+       * stdlib/qsort.c (SWAP): Likewise.
+       (_quicksort): Likewise.
+       * stdlib/setenv.c (__add_to_environ): Likewise.
+       * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
+       * stdlib/strtol_l.c (__strtol_l): Likewise.
+       * stdlib/tst-strtod.c (main): Likewise.
+       * stdlib/tst-strtol.c (main): Likewise.
+       * stdlib/tst-strtoll.c (main): Likewise.
+       * string/bits/string2.h (__strcmp_cc): Likewise.
+       (__strcmp_cg): Likewise.
+       (__strcspn_c1): Likewise.
+       (__strcspn_c2): Likewise.
+       (__strcspn_c3): Likewise.
+       (__strspn_c1): Likewise.
+       (__strspn_c2): Likewise.
+       (__strspn_c3): Likewise.
+       (__strsep_1c): Likewise.
+       (__strsep_2c): Likewise.
+       (__strsep_3c): Likewise.
+       * string/memccpy.c (__memccpy): Likewise.
+       * string/stpcpy.c (__stpcpy): Likewise.
+       * string/strcmp.c (strcmp): Likewise.
+       * string/strrchr.c (strrchr): Likewise.
+       * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
+       Likewise.
+       * sysdeps/mach/hurd/getcwd.c
+       (_hurd_canonicalize_directory_name_internal): Likewise.
+       * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
+       * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
+       * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
+       * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
+       Likewise, in both definitions.
+       * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
+       definitions.
+       [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
+       64] (__bswap_64): Likewise.
+       * time/test_time.c (main): Likewise.
+       * time/tzfile.c (__tzfile_read): Likewise.
+       (__tzfile_compute): Likewise.
+       * time/tzset.c (__tzset_parse_tz): Likewise.
+       (tzset_internal): Likewise.
+       (compute_change): Likewise.
+       * wcsmbs/wcscat.c (__wcscat): Likewise.
+       * wcsmbs/wcschr.c (wcschr): Likewise.
+       * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
+       * wcsmbs/wcscspn.c (wcscspn): Likewise.
+       * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
+       * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
+       * wcsmbs/wcsspn.c (wcsspn): Likewise.
+       * wcsmbs/wcsstr.c (wcsstr): Likewise.
+       * wcsmbs/wmemchr.c (wmemchr): Likewise.
+       * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
+       * wcsmbs/wmemset.c (wmemset): Likewise.
+
 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
 
        * scripts/config.guess: Update to version 2013-05-16.
index 57d34b461a77957f526e22265092bf9971dac0b9..5a35084279346c0bb938d55fd0cd33d31d170857 100644 (file)
@@ -48,7 +48,7 @@ __bswap_32 (unsigned int __bsx)
 # else
 #  define __bswap_32(x) \
   (__extension__                                                             \
-   ({ register unsigned int __bsx = (x); __bswap_constant_32 (__bsx); }))
+   ({ unsigned int __bsx = (x); __bswap_constant_32 (__bsx); }))
 # endif
 #else
 static __inline unsigned int
index b90a46dd657b534955b3e0f89c715e231fa76711..e429950e258cdc631e05a77ce3a5612ca6a2a4d6 100644 (file)
@@ -88,8 +88,8 @@ _ufc_doit_r(itr, __data, res)
 {
   int i;
   long64 l, r, s, *k;
-  register long64 *sb01 = (long64*)__data->sb0;
-  register long64 *sb23 = (long64*)__data->sb2;
+  long64 *sb01 = (long64*)__data->sb0;
+  long64 *sb23 = (long64*)__data->sb2;
 
   l = (((long64)res[0]) << 32) | ((long64)res[1]);
   r = (((long64)res[2]) << 32) | ((long64)res[3]);
index cdf052ebbbca2fb45da69be704a39c972ca62959..b16b83d16ef317e13c0e792cce012eb274bc724e 100644 (file)
@@ -29,8 +29,8 @@ __stpcpy_chk (dest, src, destlen)
      const char *src;
      size_t destlen;
 {
-  register char *d = dest;
-  register const char *s = src;
+  char *d = dest;
+  const char *s = src;
 
   do
     {
index 0d49f70f05ceed73aa2e12f9d68369e150a55822..2bd7e763502f0debe11e946a1b3ff9d22a792b4e 100644 (file)
@@ -23,8 +23,8 @@
 wchar_t *
 __wcscat_chk (wchar_t *dest, const wchar_t *src, size_t destlen)
 {
-  register wchar_t *s1 = dest;
-  register const wchar_t *s2 = src;
+  wchar_t *s1 = dest;
+  const wchar_t *s2 = src;
   wchar_t c;
 
   /* Find the end of the string.  */
index 0d2ed0594e4baf1ea423903d14bd34e20c61695a..9774d57ccced20793e8950d8ff0d46b7ad456061 100644 (file)
@@ -102,7 +102,7 @@ __monstartup (lowpc, highpc)
      u_long lowpc;
      u_long highpc;
 {
-  register int o;
+  int o;
   char *cp;
   struct gmonparam *p = &_gmonparam;
 
index 5a4a2499d461acc7f1a23e17dbe45ba88968d7ea..0c2acd2890dd7ed9795b081fa300dbb2fbdafac2 100644 (file)
@@ -58,10 +58,10 @@ static char sccsid[] = "@(#)mcount.c        8.1 (Berkeley) 6/4/93";
  */
 _MCOUNT_DECL(frompc, selfpc)   /* _mcount; may be static, inline, etc */
 {
-       register ARCINDEX *frompcindex;
-       register struct tostruct *top, *prevtop;
-       register struct gmonparam *p;
-       register ARCINDEX toindex;
+       ARCINDEX *frompcindex;
+       struct tostruct *top, *prevtop;
+       struct gmonparam *p;
+       ARCINDEX toindex;
        int i;
 
        p = &_gmonparam;
index 872426137699d7ee637ad2f942c2638712237df9..0b48c08b04287bd2b69434cfe2761c10d0f5fad0 100644 (file)
@@ -171,10 +171,10 @@ malloc_init (void)
 static void
 more_memory(int size, free_list_t fl)
 {
-       register int amount;
-       register int n;
+       int amount;
+       int n;
        vm_address_t where;
-       register header_t h;
+       header_t h;
        kern_return_t r;
 
        if (size <= vm_page_size) {
@@ -203,11 +203,11 @@ more_memory(int size, free_list_t fl)
 /* Declaration changed to standard one for GNU.  */
 void *
 malloc(size)
-       register size_t size;
+       size_t size;
 {
-       register int i, n;
-       register free_list_t fl;
-       register header_t h;
+       int i, n;
+       free_list_t fl;
+       header_t h;
 
        if ((int) size < 0)             /* sanity check */
                return 0;
@@ -272,9 +272,9 @@ void
 free(base)
        void *base;
 {
-       register header_t h;
-       register free_list_t fl;
-       register int i;
+       header_t h;
+       free_list_t fl;
+       int i;
 
        if (base == 0)
                return;
@@ -322,9 +322,9 @@ realloc(old_base, new_size)
         void *old_base;
         size_t new_size;
 {
-       register header_t h;
-       register free_list_t fl;
-       register int i;
+       header_t h;
+       free_list_t fl;
+       int i;
        unsigned int old_size;
        char *new_base;
 
@@ -382,10 +382,10 @@ realloc(old_base, new_size)
 void
 print_malloc_free_list()
 {
-       register int i, size;
-       register free_list_t fl;
-       register int n;
-       register header_t h;
+       int i, size;
+       free_list_t fl;
+       int n;
+       header_t h;
        int total_used = 0;
        int total_free = 0;
 
@@ -416,7 +416,7 @@ malloc_fork_prepare(void)
  * malloc critical section.
  */
 {
-    register int i;
+    int i;
 
     for (i = 0; i < NBUCKETS; i++) {
        spin_lock(&malloc_free_list[i].lock);
@@ -429,7 +429,7 @@ malloc_fork_parent(void)
  * Called in the parent process after a fork() to resume normal operation.
  */
 {
-    register int i;
+    int i;
 
     for (i = NBUCKETS-1; i >= 0; i--) {
        spin_unlock(&malloc_free_list[i].lock);
@@ -442,7 +442,7 @@ malloc_fork_child(void)
  * Called in the child process after a fork() to resume normal operation.
  */
 {
-    register int i;
+    int i;
 
     for (i = NBUCKETS-1; i >= 0; i--) {
        spin_unlock(&malloc_free_list[i].lock);
index c14f069668810930b25ee79c0cf41837fefe10dc..0e9db1a226f4df95ba36a8a865e17b8c615ccfd0 100644 (file)
@@ -7,12 +7,12 @@ libc_hidden_proto (getsecretkey)
 libc_hidden_proto (rtime)
 
 extern bool_t xdr_authdes_cred (XDR *xdrs, struct authdes_cred *cred);
-extern bool_t xdr_authdes_verf (register XDR *xdrs,
-                               register struct authdes_verf *verf);
+extern bool_t xdr_authdes_verf (XDR *xdrs,
+                               struct authdes_verf *verf);
 struct svc_req;
 struct rpc_msg;
-extern enum auth_stat _svcauth_des (register struct svc_req *rqst,
-                                   register struct rpc_msg *msg);
+extern enum auth_stat _svcauth_des (struct svc_req *rqst,
+                                   struct rpc_msg *msg);
 
 
 #define DECLARE_NSS_PROTOTYPES(service)                                        \
index 0e115a4420920225333c712b4361a7646f8694af..c993c8b8471f42153685576812640c17af830fe6 100644 (file)
@@ -44,7 +44,7 @@ in_addr_t
 inet_lnaof(in)
        struct in_addr in;
 {
-       register u_int32_t i = ntohl(in.s_addr);
+       u_int32_t i = ntohl(in.s_addr);
 
        if (IN_CLASSA(i))
                return ((i)&IN_CLASSA_HOST);
index d58f1ae8e3d89bf59b347885e593a8b5f46552ec..68e232f3d3dc1e1de773da8a0af7ca5ed6604fea 100644 (file)
@@ -43,10 +43,10 @@ static char sccsid[] = "@(#)inet_network.c  8.1 (Berkeley) 6/4/93";
  */
 u_int32_t
 inet_network(cp)
-       register const char *cp;
+       const char *cp;
 {
-       register u_int32_t val, base, n, i;
-       register char c;
+       u_int32_t val, base, n, i;
+       char c;
        u_int32_t parts[4], *pp = parts;
        int digit;
 
index e49177a0f4b79bbf11c11f0d03d6d0b7b5097b34..9b0aed992e9ba65f0efc47c60ccc190f430e5fcd 100644 (file)
@@ -43,7 +43,7 @@ in_addr_t
 inet_netof(in)
        struct in_addr in;
 {
-       register u_int32_t i = ntohl(in.s_addr);
+       u_int32_t i = ntohl(in.s_addr);
 
        if (IN_CLASSA(i))
                return (((i)&IN_CLASSA_NET) >> IN_CLASSA_NSHIFT);
index 5e18b126916f7562ee9756acbb92f9d3f5b8c856..acacaa0d8a78cd256589f3eed24690e2e8f1c03b 100644 (file)
@@ -769,8 +769,8 @@ __validuser2_sa(hostf, ra, ralen, luser, ruser, rhost)
        size_t ralen;
        const char *luser, *ruser, *rhost;
 {
-    register const char *user;
-    register char *p;
+    const char *user;
+    char *p;
     int hcheck, ucheck;
     char *buf = NULL;
     size_t bufsize = 0;
index 5ba202b8aa8b66693d8ccdded8641e4cfe5083d5..c9c054d6d36ab20f3d575bed9b1ab86b0aa0dc4a 100644 (file)
--- a/io/fts.c
+++ b/io/fts.c
@@ -87,12 +87,12 @@ static int      fts_safe_changedir (FTS *, FTSENT *, int, const char *)
 FTS *
 fts_open(argv, options, compar)
        char * const *argv;
-       register int options;
+       int options;
        int (*compar) (const FTSENT **, const FTSENT **);
 {
-       register FTS *sp;
-       register FTSENT *p, *root;
-       register int nitems;
+       FTS *sp;
+       FTSENT *p, *root;
+       int nitems;
        FTSENT *parent = NULL;
        FTSENT *tmp;
 
@@ -204,10 +204,10 @@ static void
 internal_function
 fts_load(sp, p)
        FTS *sp;
-       register FTSENT *p;
+       FTSENT *p;
 {
-       register int len;
-       register char *cp;
+       int len;
+       char *cp;
 
        /*
         * Load the stream structure for the next traversal.  Since we don't
@@ -231,7 +231,7 @@ int
 fts_close(sp)
        FTS *sp;
 {
-       register FTSENT *freep, *p;
+       FTSENT *freep, *p;
        int saved_errno;
 
        /*
@@ -283,11 +283,11 @@ fts_close(sp)
 
 FTSENT *
 fts_read(sp)
-       register FTS *sp;
+       FTS *sp;
 {
-       register FTSENT *p, *tmp;
-       register int instr;
-       register char *t;
+       FTSENT *p, *tmp;
+       int instr;
+       char *t;
        int saved_errno;
 
        /* If finished or unrecoverable error, return NULL. */
@@ -495,10 +495,10 @@ fts_set(sp, p, instr)
 
 FTSENT *
 fts_children(sp, instr)
-       register FTS *sp;
+       FTS *sp;
        int instr;
 {
-       register FTSENT *p;
+       FTSENT *p;
        int fd;
 
        if (instr != 0 && instr != FTS_NAMEONLY) {
@@ -578,12 +578,12 @@ fts_children(sp, instr)
 static FTSENT *
 internal_function
 fts_build(sp, type)
-       register FTS *sp;
+       FTS *sp;
        int type;
 {
-       register struct dirent *dp;
-       register FTSENT *p, *head;
-       register int nitems;
+       struct dirent *dp;
+       FTSENT *p, *head;
+       int nitems;
        FTSENT *cur, *tail;
        DIR *dirp;
        void *oldaddr;
@@ -848,12 +848,12 @@ static u_short
 internal_function
 fts_stat(sp, p, follow)
        FTS *sp;
-       register FTSENT *p;
+       FTSENT *p;
        int follow;
 {
-       register FTSENT *t;
-       register dev_t dev;
-       register ino_t ino;
+       FTSENT *t;
+       dev_t dev;
+       ino_t ino;
        struct stat *sbp, sb;
        int saved_errno;
 
@@ -933,9 +933,9 @@ internal_function
 fts_sort(sp, head, nitems)
        FTS *sp;
        FTSENT *head;
-       register int nitems;
+       int nitems;
 {
-       register FTSENT **ap, *p;
+       FTSENT **ap, *p;
 
        /*
         * Construct an array of pointers to the structures and call qsort(3).
@@ -973,7 +973,7 @@ fts_alloc(sp, name, namelen)
        const char *name;
        size_t namelen;
 {
-       register FTSENT *p;
+       FTSENT *p;
        size_t len;
 
        /*
@@ -1009,9 +1009,9 @@ fts_alloc(sp, name, namelen)
 static void
 internal_function
 fts_lfree(head)
-       register FTSENT *head;
+       FTSENT *head;
 {
-       register FTSENT *p;
+       FTSENT *p;
 
        /* Free a linked list of structures. */
        while ((p = head)) {
index 61b61b30d88d0fca9e6b20a2fe62a2406cc027cf..e92f85b243496c07d3677b97c785da7f42fb6c38 100644 (file)
@@ -1272,7 +1272,7 @@ _IO_new_file_xsputn (f, data, n)
      const void *data;
      _IO_size_t n;
 {
-  register const char *s = (const char *) data;
+  const char *s = (const char *) data;
   _IO_size_t to_do = n;
   int must_flush = 0;
   _IO_size_t count = 0;
@@ -1289,7 +1289,7 @@ _IO_new_file_xsputn (f, data, n)
       count = f->_IO_buf_end - f->_IO_write_ptr;
       if (count >= n)
        {
-         register const char *p;
+         const char *p;
          for (p = s + n; p > s; )
            {
              if (*--p == '\n')
@@ -1357,9 +1357,9 @@ _IO_file_xsgetn (fp, data, n)
      void *data;
      _IO_size_t n;
 {
-  register _IO_size_t want, have;
-  register _IO_ssize_t count;
-  register char *s = data;
+  _IO_size_t want, have;
+  _IO_ssize_t count;
+  char *s = data;
 
   want = n;
 
@@ -1459,9 +1459,9 @@ _IO_file_xsgetn_mmap (fp, data, n)
      void *data;
      _IO_size_t n;
 {
-  register _IO_size_t have;
+  _IO_size_t have;
   char *read_ptr = fp->_IO_read_ptr;
-  register char *s = (char *) data;
+  char *s = (char *) data;
 
   have = fp->_IO_read_end - fp->_IO_read_ptr;
 
index 386704215d029d399cade57d1eea40dc6ab29d3c..34db0cb7f24cde4fecb40759e734913195806f12 100644 (file)
@@ -30,9 +30,9 @@
 #include <shlib-compat.h>
 
 /* Prototyped for local functions.  */
-static _IO_ssize_t _IO_cookie_read (register _IO_FILE* fp, void* buf,
+static _IO_ssize_t _IO_cookie_read (_IO_FILE* fp, void* buf,
                                    _IO_ssize_t size);
-static _IO_ssize_t _IO_cookie_write (register _IO_FILE* fp,
+static _IO_ssize_t _IO_cookie_write (_IO_FILE* fp,
                                     const void* buf, _IO_ssize_t size);
 static _IO_off64_t _IO_cookie_seek (_IO_FILE *fp, _IO_off64_t offset, int dir);
 static _IO_off64_t _IO_cookie_seekoff (_IO_FILE *fp, _IO_off64_t offset,
index 80e4b57ee2e71bccaf684f34248dc9a27bfd7e97..c9537f4d871a752235217901a9432edb5eb13800 100644 (file)
@@ -689,7 +689,7 @@ _IO_old_file_xsputn (f, data, n)
      const void *data;
      _IO_size_t n;
 {
-  register const char *s = (char *) data;
+  const char *s = (char *) data;
   _IO_size_t to_do = n;
   int must_flush = 0;
   _IO_size_t count = 0;
@@ -706,7 +706,7 @@ _IO_old_file_xsputn (f, data, n)
       count = f->_IO_buf_end - f->_IO_write_ptr;
       if (count >= n)
        {
-         register const char *p;
+         const char *p;
          for (p = s + n; p > s; )
            {
              if (*--p == '\n')
@@ -738,8 +738,8 @@ _IO_old_file_xsputn (f, data, n)
        }
       else
        {
-         register char *p = f->_IO_write_ptr;
-         register int i = (int) count;
+         char *p = f->_IO_write_ptr;
+         int i = (int) count;
          while (--i >= 0)
            *p++ = *s++;
          f->_IO_write_ptr = p;
index d59abbdce76ed74a26a429395ad1b0f5984f29cb..0a156eaad45af8fe5a348d7072140113b0ef959a 100644 (file)
@@ -907,7 +907,7 @@ _IO_wfile_xsputn (f, data, n)
      const void *data;
      _IO_size_t n;
 {
-  register const wchar_t *s = (const wchar_t *) data;
+  const wchar_t *s = (const wchar_t *) data;
   _IO_size_t to_do = n;
   int must_flush = 0;
   _IO_size_t count;
@@ -925,7 +925,7 @@ _IO_wfile_xsputn (f, data, n)
       count = f->_wide_data->_IO_buf_end - f->_wide_data->_IO_write_ptr;
       if (count >= n)
        {
-         register const wchar_t *p;
+         const wchar_t *p;
          for (p = s + n; p > s; )
            {
              if (*--p == L'\n')
@@ -955,8 +955,8 @@ _IO_wfile_xsputn (f, data, n)
        }
       else
        {
-         register wchar_t *p = f->_wide_data->_IO_write_ptr;
-         register int i = (int) count;
+         wchar_t *p = f->_wide_data->_IO_write_ptr;
+         int i = (int) count;
          while (--i >= 0)
            *p++ = *s++;
          f->_wide_data->_IO_write_ptr = p;
index fc34d71968429e0d7f6fa58d5853c2b60877c9bb..a77377b6d9d495e7af531dbb1641913ef05e484b 100644 (file)
@@ -78,8 +78,8 @@ __mach_msg_server_timeout (boolean_t (*demux) (mach_msg_header_t *request,
                           mach_msg_option_t option,
                           mach_msg_timeout_t timeout)
 {
-  register mig_reply_header_t *request, *reply;
-  register mach_msg_return_t mr;
+  mig_reply_header_t *request, *reply;
+  mach_msg_return_t mr;
 
   if (max_size == 0)
     {
index c3c7db4a96b7e82a3beb007cc1dbf95301ceb0ab..69320ca143b69ed6b15d8cfa3fca3d014fe47507 100644 (file)
@@ -154,7 +154,7 @@ _obstack_begin (struct obstack *h,
                void *(*chunkfun) (long),
                void (*freefun) (void *))
 {
-  register struct _obstack_chunk *chunk; /* points to new chunk */
+  struct _obstack_chunk *chunk; /* points to new chunk */
 
   if (alignment == 0)
     alignment = DEFAULT_ALIGNMENT;
@@ -201,7 +201,7 @@ _obstack_begin_1 (struct obstack *h, int size, int alignment,
                  void (*freefun) (void *, void *),
                  void *arg)
 {
-  register struct _obstack_chunk *chunk; /* points to new chunk */
+  struct _obstack_chunk *chunk; /* points to new chunk */
 
   if (alignment == 0)
     alignment = DEFAULT_ALIGNMENT;
@@ -252,11 +252,11 @@ _obstack_begin_1 (struct obstack *h, int size, int alignment,
 void
 _obstack_newchunk (struct obstack *h, int length)
 {
-  register struct _obstack_chunk *old_chunk = h->chunk;
-  register struct _obstack_chunk *new_chunk;
-  register long        new_size;
-  register long obj_size = h->next_free - h->object_base;
-  register long i;
+  struct _obstack_chunk *old_chunk = h->chunk;
+  struct _obstack_chunk *new_chunk;
+  long new_size;
+  long obj_size = h->next_free - h->object_base;
+  long i;
   long already;
   char *object_base;
 
@@ -329,8 +329,8 @@ int _obstack_allocated_p (struct obstack *h, void *obj);
 int
 _obstack_allocated_p (struct obstack *h, void *obj)
 {
-  register struct _obstack_chunk *lp;  /* below addr of any objects in this chunk */
-  register struct _obstack_chunk *plp; /* point to previous chunk if any */
+  struct _obstack_chunk *lp;   /* below addr of any objects in this chunk */
+  struct _obstack_chunk *plp;  /* point to previous chunk if any */
 
   lp = (h)->chunk;
   /* We use >= rather than > since the object cannot be exactly at
@@ -352,8 +352,8 @@ _obstack_allocated_p (struct obstack *h, void *obj)
 void
 obstack_free (struct obstack *h, void *obj)
 {
-  register struct _obstack_chunk *lp;  /* below addr of any objects in this chunk */
-  register struct _obstack_chunk *plp; /* point to previous chunk if any */
+  struct _obstack_chunk *lp;   /* below addr of any objects in this chunk */
+  struct _obstack_chunk *plp;  /* point to previous chunk if any */
 
   lp = h->chunk;
   /* We use >= because there cannot be an object at the beginning of a chunk.
@@ -388,8 +388,8 @@ strong_alias (obstack_free, _obstack_free)
 int
 _obstack_memory_used (struct obstack *h)
 {
-  register struct _obstack_chunk* lp;
-  register int nbytes = 0;
+  struct _obstack_chunk* lp;
+  int nbytes = 0;
 
   for (lp = h->chunk; lp != 0; lp = lp->prev)
     {
index b1e6376fb66dc260a9c8a8d37ae86a1bc530ce5c..18944e2b99150aead026a321756b3aef327ee287 100644 (file)
@@ -47,7 +47,7 @@ struct ttyent *
 getttynam(tty)
        const char *tty;
 {
-       register struct ttyent *t;
+       struct ttyent *t;
 
        setttyent();
        while ((t = getttyent()))
@@ -64,8 +64,8 @@ struct ttyent *
 getttyent()
 {
        static struct ttyent tty;
-       register int c;
-       register char *p;
+       int c;
+       char *p;
 #define        MAXLINELENGTH   100
        static char line[MAXLINELENGTH];
 
@@ -142,10 +142,10 @@ libc_hidden_def (getttyent)
 static char *
 internal_function
 skip(p)
-       register char *p;
+       char *p;
 {
-       register char *t;
-       register int c, q;
+       char *t;
+       int c, q;
 
        for (q = 0, t = p; (c = *p) != '\0'; p++) {
                if (c == '"') {
@@ -177,7 +177,7 @@ skip(p)
 static char *
 internal_function
 value(p)
-       register char *p;
+       char *p;
 {
 
        return ((p = index(p, '=')) ? ++p : NULL);
index 2e8d97e65c77ec4a9f59ead566166d542b488ace..677377c3f7fb9081ad98402b9bc01087821e0a88 100644 (file)
@@ -95,8 +95,8 @@ setusershell()
 static char **
 initshells()
 {
-       register char **sp, *cp;
-       register FILE *fp;
+       char **sp, *cp;
+       FILE *fp;
        struct stat64 statb;
        size_t flen;
 
index 748361fc8c44b81fa79e201282cae7d00903b6d3..4976e89b6ea563641e0a5bfba73810c5653bb05b 100644 (file)
@@ -229,7 +229,7 @@ __vsyslog_chk(int pri, int flag, const char *fmt, va_list ap)
        /* Output to stderr if requested. */
        if (LogStat & LOG_PERROR) {
                struct iovec iov[2];
-               register struct iovec *v = iov;
+               struct iovec *v = iov;
 
                v->iov_base = buf + msgoff;
                v->iov_len = bufsize - msgoff;
index 5872f23fd0b6ffcb30f75870f6905291252a8456..75ca6a2d42d2c79d1733a91d81d2d398c891bd8e 100644 (file)
@@ -40,9 +40,9 @@ static char sccsid[] = "@(#)ttyslot.c 8.1 (Berkeley) 6/4/93";
 int
 ttyslot()
 {
-       register struct ttyent *ttyp;
-       register int slot;
-       register char *p;
+       struct ttyent *ttyp;
+       int slot;
+       char *p;
        int cnt;
        size_t buflen = __sysconf (_SC_TTY_NAME_MAX) + 1;
        char *name;
index d8a6d06fdd8f140a14470bf7588bfe5a146969de..c927575cc2e4e4b3fc954bff0d6e6b8c3b049778 100644 (file)
  * OZ's original sdbm hash
  */
 uint32_t
-__nis_hash (const void *keyarg, register size_t len)
+__nis_hash (const void *keyarg, size_t len)
 {
-  register const u_char *key;
-  register size_t loop;
-  register uint32_t h;
+  const u_char *key;
+  size_t loop;
+  uint32_t h;
 
 #define HASHC   h = *key++ + 65599 * h
 
index 46cddaff0ec8202d11706908fc288e02f1ee9db7..09cb121fa128b4e521432b6ad0b0e1df73042450 100644 (file)
@@ -1,3 +1,11 @@
+2013-06-07  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/ia64/bits/byteswap-16.h [__GNUC__ && __GNUC__ >= 2]
+       (__bswap_16): Do not use "register".
+       * sysdeps/ia64/bits/byteswap.h [__GNUC__ && __GNUC__ >= 2]
+       (__bswap_32): Likewise.
+       [__GNUC__ && __GNUC__ >= 2] (__bswap_64): Likewise.
+
 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
 
        * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h (siginfo_t): Add
index 2ff9b749c9cea0d480f40227d478282b15eedbc0..d91824e5b2d65eadbb14f05b1b362a15a832037f 100644 (file)
@@ -23,7 +23,7 @@
 #if defined __GNUC__ && __GNUC__ >= 2
 # define __bswap_16(x) \
      (__extension__                                                          \
-      ({ register unsigned short int __v, __x = (unsigned short int) (x);     \
+      ({ unsigned short int __v, __x = (unsigned short int) (x);             \
         if (__builtin_constant_p (x))                                        \
           __v = __bswap_constant_16 (__x);                                   \
         else                                                                 \
index b9b590269a307de8ad90c4e10ec5e03e4523af78..447cadfe73f578a623a1c33c56d844d7dee8d315 100644 (file)
@@ -38,7 +38,7 @@
 #if defined __GNUC__ && __GNUC__ >= 2
 # define __bswap_32(x) \
      (__extension__                                                          \
-      ({ register unsigned int __v, __x = (x);                               \
+      ({ unsigned int __v, __x = (x);                                        \
         if (__builtin_constant_p (x))                                        \
           __v = __bswap_constant_32 (__x);                                   \
         else                                                                 \
@@ -70,7 +70,7 @@ __bswap_32 (unsigned int __bsx)
 
 # define __bswap_64(x) \
      (__extension__                                                          \
-      ({ register unsigned long int __v, __x = (x);                          \
+      ({ unsigned long int __v, __x = (x);                                   \
         if (__builtin_constant_p (x))                                        \
           __v = __bswap_constant_64 (__x);                                   \
         else                                                                 \
index 6c4301df13a7ab2929e73410ba58ed3d582a50a9..078b98242e800c1a8d2fbef88fc49b189dd4b093 100644 (file)
@@ -47,8 +47,8 @@ FCT (pattern, string, string_end, no_leading_period, flags, ends, alloca_used)
      struct STRUCT *ends;
      size_t alloca_used;
 {
-  register const CHAR *p = pattern, *n = string;
-  register UCHAR c;
+  const CHAR *p = pattern, *n = string;
+  UCHAR c;
 #ifdef _LIBC
 # if WIDE_CHAR_VERSION
   const char *collseq = (const char *)
@@ -237,7 +237,7 @@ FCT (pattern, string, string_end, no_leading_period, flags, ends, alloca_used)
            /* Nonzero if the sense of the character class is inverted.  */
            const CHAR *p_init = p;
            const CHAR *n_init = n;
-           register int not;
+           int not;
            CHAR cold;
            UCHAR fn;
 
index 8a0c79bf34d3784672af173a1b5f466298ef20aa..878772022dd61eeabc9e0d5298d79060ff09ea6d 100644 (file)
@@ -1043,7 +1043,7 @@ usage (void)
 static void
 print_all (const char *path)
 {
-  register const struct conf *c;
+  const struct conf *c;
   size_t clen;
   long int value;
   char *cvalue;
@@ -1087,7 +1087,7 @@ print_all (const char *path)
 int
 main (int argc, char *argv[])
 {
-  register const struct conf *c;
+  const struct conf *c;
 
   /* Set locale.  Do not set LC_ALL because the other categories must
      not be affected (according to POSIX.2).  */
index 20b8eb30bfa3b1d93e76d5103d4134b6997557f6..5497fc4247194a5ca252b7a61303103f67e02c35 100644 (file)
@@ -227,7 +227,7 @@ exchange (char **argv, struct _getopt_data *d)
        {
          /* Bottom segment is the short one.  */
          int len = middle - bottom;
-         register int i;
+         int i;
 
          /* Swap it with the top part of the top segment.  */
          for (i = 0; i < len; i++)
@@ -244,7 +244,7 @@ exchange (char **argv, struct _getopt_data *d)
        {
          /* Top segment is the short one.  */
          int len = top - middle;
-         register int i;
+         int i;
 
          /* Swap it with the bottom part of the bottom segment.  */
          for (i = 0; i < len; i++)
index 83b4f2fed3abc7133ef49d201a59686a55d4118c..4c7dce5ee870a19328803570c71a400573ecad69 100644 (file)
@@ -1263,7 +1263,7 @@ libc_hidden_def (glob)
 /* Free storage allocated in PGLOB by a previous `glob' call.  */
 void
 globfree (pglob)
-     register glob_t *pglob;
+     glob_t *pglob;
 {
   if (pglob->gl_pathv != NULL)
     {
@@ -1303,7 +1303,7 @@ collated_compare (const void *a, const void *b)
 static int
 prefix_array (const char *dirname, char **array, size_t n)
 {
-  register size_t i;
+  size_t i;
   size_t dirlen = strlen (dirname);
 #if defined __MSDOS__ || defined WINDOWS32
   int sep_char = '/';
@@ -1362,7 +1362,7 @@ __glob_pattern_type (pattern, quote)
      const char *pattern;
      int quote;
 {
-  register const char *p;
+  const char *p;
   int ret = 0;
 
   for (p = pattern; *p != '\0'; ++p)
index 6a2c8376bd6565cbd7f1354c50f83bf371b0fb99..fb8513ba9bcec34b6f18253d7d33eb915ee8e5a0 100644 (file)
@@ -433,7 +433,7 @@ typedef enum __ns_cert_types {
  * Inline versions of get/put short/long.  Pointer is advanced.
  */
 #define NS_GET16(s, cp) do { \
-       register const u_char *t_cp = (const u_char *)(cp); \
+       const u_char *t_cp = (const u_char *)(cp); \
        (s) = ((u_int16_t)t_cp[0] << 8) \
            | ((u_int16_t)t_cp[1]) \
            ; \
@@ -441,7 +441,7 @@ typedef enum __ns_cert_types {
 } while (0)
 
 #define NS_GET32(l, cp) do { \
-       register const u_char *t_cp = (const u_char *)(cp); \
+       const u_char *t_cp = (const u_char *)(cp); \
        (l) = ((u_int32_t)t_cp[0] << 24) \
            | ((u_int32_t)t_cp[1] << 16) \
            | ((u_int32_t)t_cp[2] << 8) \
@@ -451,16 +451,16 @@ typedef enum __ns_cert_types {
 } while (0)
 
 #define NS_PUT16(s, cp) do { \
-       register u_int16_t t_s = (u_int16_t)(s); \
-       register u_char *t_cp = (u_char *)(cp); \
+       u_int16_t t_s = (u_int16_t)(s); \
+       u_char *t_cp = (u_char *)(cp); \
        *t_cp++ = t_s >> 8; \
        *t_cp   = t_s; \
        (cp) += NS_INT16SZ; \
 } while (0)
 
 #define NS_PUT32(l, cp) do { \
-       register u_int32_t t_l = (u_int32_t)(l); \
-       register u_char *t_cp = (u_char *)(cp); \
+       u_int32_t t_l = (u_int32_t)(l); \
+       u_char *t_cp = (u_char *)(cp); \
        *t_cp++ = t_l >> 24; \
        *t_cp++ = t_l >> 16; \
        *t_cp++ = t_l >> 8; \
index a8ccf1fd3aee4739d3aa9b4401a3e0f9047ce07c..9568c06475d6ce756af3b8b7f6e52738410b64a9 100644 (file)
@@ -178,9 +178,9 @@ Dprintf(msg, num)
 static struct hostent *
 getanswer (const querybuf *answer, int anslen, const char *qname, int qtype)
 {
-       register const HEADER *hp;
-       register const u_char *cp;
-       register int n;
+       const HEADER *hp;
+       const u_char *cp;
+       int n;
        const u_char *eom, *erdata;
        char *bp, **ap, **hap;
        int type, class, buflen, ancount, qdcount;
@@ -409,7 +409,7 @@ getanswer (const querybuf *answer, int anslen, const char *qname, int qtype)
                                continue;
                        }
                        if (!haveanswer) {
-                               register int nn;
+                               int nn;
 
                                host.h_name = bp;
                                nn = strlen(bp) + 1;    /* for the \0 */
@@ -514,7 +514,7 @@ gethostbyname2(name, af)
          u_char *ptr;
        } buf;
        querybuf *origbuf;
-       register const char *cp;
+       const char *cp;
        char *bp;
        int n, size, type, len;
        struct hostent *ret;
@@ -653,10 +653,10 @@ gethostbyaddr(addr, len, af)
          u_char *ptr;
        } buf;
        querybuf *orig_buf;
-       register struct hostent *hp;
+       struct hostent *hp;
        char qbuf[MAXDNAME+1], *qp = NULL;
 #ifdef SUNSECURITY
-       register struct hostent *rhp;
+       struct hostent *rhp;
        char **haddr;
        u_long old_options;
        char hname2[MAXDNAME+1];
@@ -807,7 +807,7 @@ struct hostent *
 _gethtent()
 {
        char *p;
-       register char *cp, **q;
+       char *cp, **q;
        int af, len;
 
        if (!hostf && !(hostf = fopen(_PATH_HOSTS, "rce" ))) {
@@ -888,8 +888,8 @@ _gethtbyname2(name, af)
        const char *name;
        int af;
 {
-       register struct hostent *p;
-       register char **cp;
+       struct hostent *p;
+       char **cp;
 
        _sethtent(0);
        while ((p = _gethtent())) {
@@ -913,7 +913,7 @@ _gethtbyaddr(addr, len, af)
        size_t len;
        int af;
 {
-       register struct hostent *p;
+       struct hostent *p;
 
        _sethtent(0);
        while ((p = _gethtent()))
index 36d39784a5bfce1ba098db4ef07656d1fef9f254..800680d371afa2c5433571e7b81ce396efaaf094 100644 (file)
@@ -935,7 +935,7 @@ dst_s_id_calc(const u_char *key, const int keysize)
 static u_int16_t
 dst_s_get_int16(const u_char *buf)
 {
-       register u_int16_t a = 0;
+       u_int16_t a = 0;
        a = ((u_int16_t)(buf[0] << 8)) | ((u_int16_t)(buf[1]));
        return (a);
 }
index af5c166da9669bd72f33cb5e048d03a9c6e48c78..9018bb98a663b4eaa5c9bd9d63ffef340a304497 100644 (file)
@@ -601,7 +601,7 @@ getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype,
     char *h_addr_ptrs[0];
   } *host_data;
   int linebuflen;
-  register const HEADER *hp;
+  const HEADER *hp;
   const u_char *end_of_message, *cp;
   int n, ancount, qdcount;
   int haveanswer, had_error;
@@ -920,7 +920,7 @@ getanswer_r (const querybuf *answer, int anslen, const char *qname, int qtype,
            }
          if (!haveanswer)
            {
-             register int nn;
+             int nn;
 
              /* We compose a single hostent out of the entire chain of
                 entries, so the TTL of the hostent is essentially the lowest
index 002dec5c57e3116659b4ece8893305d419df39a2..5e1a747a4ada5910ce7a67842f2a4c7a613381e7 100644 (file)
@@ -149,9 +149,9 @@ libc_hidden_def (__res_ninit)
 /* This function has to be reachable by res_data.c but not publically. */
 int
 __res_vinit(res_state statp, int preinit) {
-       register FILE *fp;
-       register char *cp, **pp;
-       register int n;
+       FILE *fp;
+       char *cp, **pp;
+       int n;
        char buf[BUFSIZ];
        int nserv = 0;    /* number of nameserver records read from file */
 #ifdef _LIBC
@@ -571,7 +571,7 @@ static u_int32_t
 net_mask(in)           /* XXX - should really use system's version of this */
        struct in_addr in;
 {
-       register u_int32_t i = ntohl(in.s_addr);
+       u_int32_t i = ntohl(in.s_addr);
 
        if (IN_CLASSA(i))
                return (htonl(IN_CLASSA_NET));
index e2c6a742c0d0b3b4b840f19189a0f95c754f039d..c0798dc54e75ffef8635088f7f6a42586ca2b994 100644 (file)
@@ -104,9 +104,9 @@ res_nmkquery(res_state statp,
             u_char *buf,               /* buffer to put query */
             int buflen)                /* size of buffer */
 {
-       register HEADER *hp;
-       register u_char *cp;
-       register int n;
+       HEADER *hp;
+       u_char *cp;
+       int n;
        u_char *dnptrs[20], **dpp, **lastdnptr;
 
 #ifdef DEBUG
index ad60f43eac3bda710a21b812f660395c436024e1..e20eab6a345c8a2202140c78d207a92f137b8b6f 100644 (file)
@@ -72,7 +72,7 @@
 #define outchar(ch)                                                          \
   do                                                                         \
     {                                                                        \
-      register const int outc = (ch);                                        \
+      const int outc = (ch);                                                 \
       if (putc (outc, fp) == EOF)                                            \
        {                                                                     \
          if (buffer_malloced)                                                \
@@ -85,7 +85,7 @@
 #define PRINT(ptr, wptr, len)                                                \
   do                                                                         \
     {                                                                        \
-      register size_t outlen = (len);                                        \
+      size_t outlen = (len);                                                 \
       if (len > 20)                                                          \
        {                                                                     \
          if (PUT (fp, wide ? (const char *) wptr : ptr, outlen) != outlen)   \
index fc3c9b232c21961535d3ce9cdd159cba097b2843..3da2eec40cdc4a1399e68555a69117adda8c91de 100644 (file)
@@ -52,7 +52,7 @@
 #define outchar(ch)                                                          \
   do                                                                         \
     {                                                                        \
-      register const int outc = (ch);                                        \
+      const int outc = (ch);                                                 \
       if (putc (outc, fp) == EOF)                                            \
        return -1;                                                            \
       ++done;                                                                \
@@ -61,7 +61,7 @@
 #define PRINT(ptr, wptr, len)                                                \
   do                                                                         \
     {                                                                        \
-      register size_t outlen = (len);                                        \
+      size_t outlen = (len);                                                 \
       if (wide)                                                                      \
        while (outlen-- > 0)                                                  \
          outchar (*wptr++);                                                  \
index 68b08392caecf725a8d265c72ab7d551c251a87f..2c496e5b2f0f271e388983a1140e54d65e03db59 100644 (file)
@@ -42,7 +42,7 @@
 #define outchar(ch)                                                          \
   do                                                                         \
     {                                                                        \
-      register const int outc = (ch);                                        \
+      const int outc = (ch);                                                 \
       if (putc (outc, fp) == EOF)                                            \
        return -1;                                                            \
       ++done;                                                                \
@@ -51,7 +51,7 @@
 #define PRINT(ptr, wptr, len)                                                \
   do                                                                         \
     {                                                                        \
-      register size_t outlen = (len);                                        \
+      size_t outlen = (len);                                                 \
       if (len > 20)                                                          \
        {                                                                     \
          if (PUT (fp, wide ? (const char *) wptr : ptr, outlen) != outlen)   \
index 93b0fa438cbe2fda5e175791c9c9890b79283892..2be8365a39a283caa61842e105447456da576df9 100644 (file)
@@ -78,7 +78,7 @@ main (int argc, char **argv)
     long int where = ftell (f);
     if (where == (long int) replace_from)
       {
-       register size_t i;
+       size_t i;
        for (i = replace_from; i < replace_to; ++i)
          if (putc(replace[i], f) == EOF)
            {
index 7704ddde39856221f55b38169f53e3a2f20c87c6..5cb366dd48eef16ab2524fb1f6128874a9c53e67 100644 (file)
@@ -4050,7 +4050,7 @@ sprint_double_type sprint_doubles[] =
 int required_precision = 13;
 
 static int
-matches (register char *result, register const char *desired)
+matches (char *result, const char *desired)
 {
     int digits_seen = 0;
     for (;; result++, desired++) {
index c8bcf5a97648811d8a8fdc4165d276729c971eac..fb22f6969e0ea9156c21d648e512309831916ca6 100644 (file)
 #define        outchar(Ch)                                                           \
   do                                                                         \
     {                                                                        \
-      register const INT_T outc = (Ch);                                              \
+      const INT_T outc = (Ch);                                               \
       if (PUTC (outc, s) == EOF || done == INT_MAX)                          \
        {                                                                     \
          done = -1;                                                          \
@@ -2061,7 +2061,7 @@ printf_unknown (FILE *s, const struct printf_info *info,
   CHAR_T work_buffer[MAX (sizeof (info->width), sizeof (info->prec)) * 3];
   CHAR_T *const workend
     = &work_buffer[sizeof (work_buffer) / sizeof (CHAR_T)];
-  register CHAR_T *w;
+  CHAR_T *w;
 
   outchar (L_('%'));
 
@@ -2267,12 +2267,12 @@ static const struct _IO_jump_t _IO_helper_jumps =
 
 static int
 internal_function
-buffered_vfprintf (register _IO_FILE *s, const CHAR_T *format,
+buffered_vfprintf (_IO_FILE *s, const CHAR_T *format,
                   _IO_va_list args)
 {
   CHAR_T buf[_IO_BUFSIZ];
   struct helper_file helper;
-  register _IO_FILE *hp = (_IO_FILE *) &helper._f;
+  _IO_FILE *hp = (_IO_FILE *) &helper._f;
   int result, to_flush;
 
   /* Orient the stream.  */
index 82f7eee1928e623f2a1995aae40ed583d6f1421a..343056769ebad7fe0a636f3e8eb8cd88b590f41e 100644 (file)
@@ -206,13 +206,13 @@ _IO_vfscanf_internal (_IO_FILE *s, const char *format, _IO_va_list argptr,
 #endif
 {
   va_list arg;
-  register const CHAR_T *f = format;
-  register UCHAR_T fc; /* Current character of the format.  */
-  register WINT_T done = 0;    /* Assignments done.  */
-  register size_t read_in = 0; /* Chars read in.  */
-  register WINT_T c = 0;       /* Last char read.  */
-  register int width;          /* Maximum field width.  */
-  register int flags;          /* Modifiers for current format element.  */
+  const CHAR_T *f = format;
+  UCHAR_T fc;  /* Current character of the format.  */
+  WINT_T done = 0;     /* Assignments done.  */
+  size_t read_in = 0;  /* Chars read in.  */
+  WINT_T c = 0;        /* Last char read.  */
+  int width;           /* Maximum field width.  */
+  int flags;           /* Modifiers for current format element.  */
   int errval = 0;
 #ifndef COMPILE_WSCANF
   __locale_t loc = _NL_CURRENT_LOCALE;
index 76a8c547268d4f260d6fa2130549f3de897c7c18..64ba314cbefec6e6591be3e4df6b6c714f79ace9 100644 (file)
@@ -9,8 +9,8 @@ typedef struct _Buffer {
 } Buffer;
 
 void InitBuffer (Buffer *b);
-void AppendToBuffer (register Buffer *b, const char *str, register int len);
-void ReadFile (register Buffer *buffer, FILE *input);
+void AppendToBuffer (Buffer *b, const char *str, int len);
+void ReadFile (Buffer *buffer, FILE *input);
 
 #define INIT_BUFFER_SIZE 10000
 
@@ -23,9 +23,9 @@ void InitBuffer(b)
 }
 
 void AppendToBuffer(b, str, len)
-     register Buffer *b;
+     Buffer *b;
      const char *str;
-     register int len;
+     int len;
 {
   while (b->used + len > b->room) {
     b->buff = (char *)realloc(b->buff, 2*b->room*(sizeof(char)));
@@ -36,11 +36,11 @@ void AppendToBuffer(b, str, len)
 }
 
 void ReadFile(buffer, input)
-     register Buffer *buffer;
+     Buffer *buffer;
      FILE *input;
 {
   char       buf[BUFSIZ + 1];
-  register int        bytes;
+  int        bytes;
 
   buffer->used = 0;
   while (!feof(input) && (bytes = fread(buf, 1, BUFSIZ, input)) > 0) {
index ccbdccc7b51f8a8e88ee960944ce417a3b529308..471c66217fab965d7612bc0359ba7221bb4cd105 100644 (file)
@@ -29,8 +29,8 @@
 #define SWAP(a, b, size)                                                     \
   do                                                                         \
     {                                                                        \
-      register size_t __size = (size);                                       \
-      register char *__a = (a), *__b = (b);                                  \
+      size_t __size = (size);                                                \
+      char *__a = (a), *__b = (b);                                           \
       do                                                                     \
        {                                                                     \
          char __tmp = *__a;                                                  \
@@ -89,7 +89,7 @@ void
 _quicksort (void *const pbase, size_t total_elems, size_t size,
            __compar_d_fn_t cmp, void *arg)
 {
-  register char *base_ptr = (char *) pbase;
+  char *base_ptr = (char *) pbase;
 
   const size_t max_thresh = MAX_THRESH * size;
 
@@ -206,7 +206,7 @@ _quicksort (void *const pbase, size_t total_elems, size_t size,
     char *const end_ptr = &base_ptr[size * (total_elems - 1)];
     char *tmp_ptr = base_ptr;
     char *thresh = min(end_ptr, base_ptr + max_thresh);
-    register char *run_ptr;
+    char *run_ptr;
 
     /* Find smallest element in first threshold and place it at the
        array's beginning.  This is the smallest array element,
index a9ebe3315fa59e21fbc0a91d822ff4557755a6a9..fdcd8e1d080fc7d72adc5460c94b99917719cffd 100644 (file)
@@ -112,8 +112,8 @@ __add_to_environ (name, value, combined, replace)
      const char *combined;
      int replace;
 {
-  register char **ep;
-  register size_t size;
+  char **ep;
+  size_t size;
   const size_t namelen = strlen (name);
   const size_t vallen = value != NULL ? strlen (value) + 1 : 0;
 
index 2eec876a9e34d2ad1a80aa302e19b5537920390a..5b41e2b06ed54d5de09a8c0a5f470116bf099c4a 100644 (file)
@@ -1175,10 +1175,9 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
      really integer digits or belong to the fractional part; i.e. we normalize
      123e-2 to 1.23.  */
   {
-    register intmax_t incr = (exponent < 0
-                             ? MAX (-(intmax_t) int_no, exponent)
-                             : MIN ((intmax_t) dig_no - (intmax_t) int_no,
-                                    exponent));
+    intmax_t incr = (exponent < 0
+                    ? MAX (-(intmax_t) int_no, exponent)
+                    : MIN ((intmax_t) dig_no - (intmax_t) int_no, exponent));
     int_no += incr;
     exponent -= incr;
   }
@@ -1499,7 +1498,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
 #define got_limb                                                             \
              if (bits == 0)                                                  \
                {                                                             \
-                 register int cnt;                                           \
+                 int cnt;                                                    \
                  if (quot == 0)                                              \
                    cnt = BITS_PER_MP_LIMB;                                   \
                  else                                                        \
@@ -1651,7 +1650,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
          if (numsize < densize)
            {
              mp_size_t empty = densize - numsize;
-             register int i;
+             int i;
 
              if (bits <= 0)
                exponent -= empty * BITS_PER_MP_LIMB;
@@ -1679,7 +1678,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc)
                      used = MANT_DIG - bits;
                      if (used >= BITS_PER_MP_LIMB)
                        {
-                         register int i;
+                         int i;
                          (void) __mpn_lshift (&retval[used
                                                       / BITS_PER_MP_LIMB],
                                               retval,
index 874708ab001eabec20dd72a1445eb62f8cb18bab..dc47608b0c1ede85f57d8c2220a8a41b6c2c8f08 100644 (file)
@@ -231,11 +231,11 @@ INTERNAL (__strtol_l) (nptr, endptr, base, group, loc)
      __locale_t loc;
 {
   int negative;
-  register unsigned LONG int cutoff;
-  register unsigned int cutlim;
-  register unsigned LONG int i;
-  register const STRING_TYPE *s;
-  register UCHAR_TYPE c;
+  unsigned LONG int cutoff;
+  unsigned int cutlim;
+  unsigned LONG int i;
+  const STRING_TYPE *s;
+  UCHAR_TYPE c;
   const STRING_TYPE *save, *end;
   int overflow;
 #ifndef USE_WIDE_CHAR
index 0154aadef6af04928877ffcdcdb00309e4b62049..acd1377b2b0f0027131a3183d74390467d6d9059 100644 (file)
@@ -85,7 +85,7 @@ int
 main (int argc, char ** argv)
 {
   char buf[100];
-  register const struct ltest *lt;
+  const struct ltest *lt;
   char *ep;
   int status = 0;
   int save_errno;
@@ -184,7 +184,7 @@ main (int argc, char ** argv)
 static void
 expand (dst, c)
      char *dst;
-     register int c;
+     int c;
 {
   if (isprint (c))
     {
index f569e55092a5291ffe34bc6f8cdaeaf86c04a411..eebd8f7afa07d4155d3b388118fe0280c59b780f 100644 (file)
@@ -537,14 +537,14 @@ static void expand (char *dst, int c);
 int
 main (void)
 {
-  register const struct ltest *lt;
+  const struct ltest *lt;
   char *ep;
   int status = 0;
   int save_errno;
 
   for (lt = tests; lt->str != NULL; ++lt)
     {
-      register long int l;
+      long int l;
 
       errno = 0;
       l = strtol (lt->str, &ep, lt->base);
@@ -577,7 +577,7 @@ main (void)
 
   for (++lt; lt->str != NULL; lt++)
     {
-      register unsigned long int ul;
+      unsigned long int ul;
 
       errno = 0;
       ul = strtoul (lt->str, &ep, lt->base);
index ba3338241b8e6079459ce6f171be5f0b93dc795d..0c77254d5264b455915a16dfbd94d32b531ea58a 100644 (file)
@@ -312,14 +312,14 @@ static void expand (char *dst, int c);
 int
 main (void)
 {
-  register const struct ltest *lt;
+  const struct ltest *lt;
   char *ep;
   int status = 0;
   int save_errno;
 
   for (lt = tests; lt->str != NULL; ++lt)
     {
-      register long long int l;
+      long long int l;
 
       errno = 0;
       l = strtoll (lt->str, &ep, lt->base);
@@ -352,7 +352,7 @@ main (void)
 
   for (++lt; lt->str != NULL; lt++)
     {
-      register unsigned long long int ul;
+      unsigned long long int ul;
 
       errno = 0;
       ul = strtoull (lt->str, &ep, lt->base);
index ddd1c045a09e510f7b442da65909ac90b3e72862..9369a7c4d920545f26d31ed24d4ae048c9370615 100644 (file)
@@ -839,7 +839,7 @@ __stpcpy_small (char *__dest,
 # endif
 
 # define __strcmp_cc(s1, s2, l) \
-  (__extension__ ({ register int __result =                                  \
+  (__extension__ ({ int __result =                                           \
                      (((const unsigned char *) (const char *) (s1))[0]       \
                       - ((const unsigned char *) (const char *)(s2))[0]);    \
                    if (l > 0 && __result == 0)                               \
@@ -868,7 +868,7 @@ __stpcpy_small (char *__dest,
 # define __strcmp_cg(s1, s2, l1) \
   (__extension__ ({ const unsigned char *__s2 =                                      \
                      (const unsigned char *) (const char *) (s2);            \
-                   register int __result =                                   \
+                   int __result =                                            \
                      (((const unsigned char *) (const char *) (s1))[0]       \
                       - __s2[0]);                                            \
                    if (l1 > 0 && __result == 0)                              \
@@ -946,7 +946,7 @@ __STRING_INLINE size_t __strcspn_c1 (const char *__s, int __reject);
 __STRING_INLINE size_t
 __strcspn_c1 (const char *__s, int __reject)
 {
-  register size_t __result = 0;
+  size_t __result = 0;
   while (__s[__result] != '\0' && __s[__result] != __reject)
     ++__result;
   return __result;
@@ -957,7 +957,7 @@ __STRING_INLINE size_t __strcspn_c2 (const char *__s, int __reject1,
 __STRING_INLINE size_t
 __strcspn_c2 (const char *__s, int __reject1, int __reject2)
 {
-  register size_t __result = 0;
+  size_t __result = 0;
   while (__s[__result] != '\0' && __s[__result] != __reject1
         && __s[__result] != __reject2)
     ++__result;
@@ -970,7 +970,7 @@ __STRING_INLINE size_t
 __strcspn_c3 (const char *__s, int __reject1, int __reject2,
              int __reject3)
 {
-  register size_t __result = 0;
+  size_t __result = 0;
   while (__s[__result] != '\0' && __s[__result] != __reject1
         && __s[__result] != __reject2 && __s[__result] != __reject3)
     ++__result;
@@ -1022,7 +1022,7 @@ __STRING_INLINE size_t __strspn_c1 (const char *__s, int __accept);
 __STRING_INLINE size_t
 __strspn_c1 (const char *__s, int __accept)
 {
-  register size_t __result = 0;
+  size_t __result = 0;
   /* Please note that __accept never can be '\0'.  */
   while (__s[__result] == __accept)
     ++__result;
@@ -1034,7 +1034,7 @@ __STRING_INLINE size_t __strspn_c2 (const char *__s, int __accept1,
 __STRING_INLINE size_t
 __strspn_c2 (const char *__s, int __accept1, int __accept2)
 {
-  register size_t __result = 0;
+  size_t __result = 0;
   /* Please note that __accept1 and __accept2 never can be '\0'.  */
   while (__s[__result] == __accept1 || __s[__result] == __accept2)
     ++__result;
@@ -1046,7 +1046,7 @@ __STRING_INLINE size_t __strspn_c3 (const char *__s, int __accept1,
 __STRING_INLINE size_t
 __strspn_c3 (const char *__s, int __accept1, int __accept2, int __accept3)
 {
-  register size_t __result = 0;
+  size_t __result = 0;
   /* Please note that __accept1 to __accept3 never can be '\0'.  */
   while (__s[__result] == __accept1 || __s[__result] == __accept2
         || __s[__result] == __accept3)
@@ -1198,7 +1198,7 @@ __STRING_INLINE char *__strsep_1c (char **__s, char __reject);
 __STRING_INLINE char *
 __strsep_1c (char **__s, char __reject)
 {
-  register char *__retval = *__s;
+  char *__retval = *__s;
   if (__retval != NULL && (*__s = strchr (__retval, __reject)) != NULL)
     *(*__s)++ = '\0';
   return __retval;
@@ -1208,10 +1208,10 @@ __STRING_INLINE char *__strsep_2c (char **__s, char __reject1, char __reject2);
 __STRING_INLINE char *
 __strsep_2c (char **__s, char __reject1, char __reject2)
 {
-  register char *__retval = *__s;
+  char *__retval = *__s;
   if (__retval != NULL)
     {
-      register char *__cp = __retval;
+      char *__cp = __retval;
       while (1)
        {
          if (*__cp == '\0')
@@ -1236,10 +1236,10 @@ __STRING_INLINE char *__strsep_3c (char **__s, char __reject1, char __reject2,
 __STRING_INLINE char *
 __strsep_3c (char **__s, char __reject1, char __reject2, char __reject3)
 {
-  register char *__retval = *__s;
+  char *__retval = *__s;
   if (__retval != NULL)
     {
-      register char *__cp = __retval;
+      char *__cp = __retval;
       while (1)
        {
          if (*__cp == '\0')
index d2c024427d099cfa5eeeffebb7a564b18bb55c75..2a3303221aa2ff50bf47d6ac869fc68065d6e5bf 100644 (file)
@@ -30,10 +30,10 @@ __memccpy (dest, src, c, n)
       int c;
       size_t n;
 {
-  register const char *s = src;
-  register char *d = dest;
-  register const char x = c;
-  register size_t i = n;
+  const char *s = src;
+  char *d = dest;
+  const char x = c;
+  size_t i = n;
 
   while (i-- > 0)
     if ((*d++ = *s++) == x)
index 93e251081d7ba5d14b660de2d921293f895ab16d..8ece3d9a78551db04b28c3b3e335ad50cafd9d4c 100644 (file)
@@ -34,8 +34,8 @@ __stpcpy (dest, src)
      char *dest;
      const char *src;
 {
-  register char *d = dest;
-  register const char *s = src;
+  char *d = dest;
+  const char *s = src;
 
   do
     *d++ = *s;
index b7a53d3452655835f83d11d349bcb52cb0ae79c7..a4645638eb685e479b89a5e3912076329cc27773 100644 (file)
@@ -28,8 +28,8 @@ strcmp (p1, p2)
      const char *p1;
      const char *p2;
 {
-  register const unsigned char *s1 = (const unsigned char *) p1;
-  register const unsigned char *s2 = (const unsigned char *) p2;
+  const unsigned char *s1 = (const unsigned char *) p1;
+  const unsigned char *s2 = (const unsigned char *) p2;
   unsigned char c1, c2;
 
   do
index 2bf34991e8a1a684bab93a7258268e2613fe4f0c..bdec841c87d6508c90c4ad161d89be8ad89abaf2 100644 (file)
@@ -23,7 +23,7 @@
 char *
 strrchr (const char *s, int c)
 {
-  register const char *found, *p;
+  const char *found, *p;
 
   c = (unsigned char) c;
 
index 91d1f8e5b8bdd2be6c3f6f8ab11787001b4eac9d..bc42bdc6fbb43676317504cdfae73d375aaa29b1 100644 (file)
@@ -29,7 +29,7 @@ sigset_set_old_mask (sigset_t *set, int mask)
     *set = (unsigned int) mask;
   else
     {
-      register unsigned int __sig;
+      unsigned int __sig;
 
       if (__sigemptyset (set) < 0)
        return -1;
@@ -52,7 +52,7 @@ sigset_get_old_mask (const sigset_t *set)
   else
     {
       unsigned int mask = 0;
-      register unsigned int sig;
+      unsigned int sig;
 
       for (sig = 1; sig < NSIG && sig <= sizeof (mask) * 8; sig++)
        if (__sigismember (set, sig))
index 43e0a2ccc1cbbfe3067b0005449d415d572d68e5..10822d2a78562a788ce60ecf9a5f1ab22fc62bed 100644 (file)
@@ -45,7 +45,7 @@ _hurd_canonicalize_directory_name_internal (file_t thisdir,
   mach_port_t rootid, thisid, rootdevid, thisdevid;
   ino64_t rootino, thisino;
   char *file_name;
-  register char *file_namep;
+  char *file_namep;
   file_t parent;
   char *dirbuf = NULL;
   unsigned int dirbufsize = 0;
index c26063c6618fc4d886cb1232a3d2c2980f7bb21c..001fe98f5ba22ae354c187d6ea64fdd4730c844e 100644 (file)
@@ -28,7 +28,7 @@
 #define SNARF_ARGS(entry_sp, argc, argv, envp)                               \
   do                                                                         \
     {                                                                        \
-      register char **p;                                                     \
+      char **p;                                                                      \
       argc = (int) *entry_sp;                                                \
       argv = (char **) (entry_sp + 1);                                       \
       p = argv;                                                                      \
index a989877bb8a28b3e5924d485c280517ae719365b..1ba64e113aa25032e658956dd583ab3727c18fa0 100644 (file)
 /* Find the first occurrence of WC in WCS.  */
 wchar_t *
 wcschr (wcs, wc)
-     register const wchar_t *wcs;
-     register const wchar_t wc;
+     const wchar_t *wcs;
+     const wchar_t wc;
 {
-  register const wchar_t *wcs2 = wcs + 1;
+  const wchar_t *wcs2 = wcs + 1;
 
   if (*wcs == wc)
     return (wchar_t *) wcs;
index d0ff9f69cfad4c0ce35c899ca28d912f5e1be966..8d26af05fbf005b8ae1b446baa89549bfaa18575 100644 (file)
 /* Find the last occurrence of WC in WCS.  */
 wchar_t *
 wcsrchr (wcs, wc)
-     register const wchar_t *wcs;
-     register const wchar_t wc;
+     const wchar_t *wcs;
+     const wchar_t wc;
 {
-  register const wchar_t *wcs2 = wcs + 1;
+  const wchar_t *wcs2 = wcs + 1;
   const wchar_t *retval = NULL;
 
   if (*wcs == wc)
index 9bb70fb608204598b21f3f43c61f65b45cc1bafc..fbb8ccc9494e16a25c6e665220685097a05f381e 100644 (file)
@@ -24,7 +24,7 @@
 # if __GNUC__ >= 2
 #  define __bswap_16(x) \
      (__extension__                                                          \
-      ({ register unsigned short int __v, __x = (unsigned short int) (x);     \
+      ({ unsigned short int __v, __x = (unsigned short int) (x);             \
         if (__builtin_constant_p (__x))                                      \
           __v = __bswap_constant_16 (__x);                                   \
         else                                                                 \
@@ -37,7 +37,7 @@
 /* This is better than nothing.  */
 #  define __bswap_16(x) \
      (__extension__                                                          \
-      ({ register unsigned short int __x = (unsigned short int) (x);         \
+      ({ unsigned short int __x = (unsigned short int) (x);                  \
         __bswap_constant_16 (__x); }))
 # endif
 #else
index 9e2effc1a6768e4e84e49d1deec25af622b5e23c..6cb7b01c2b83346fb0bf3ab59abdeda554e9a31f 100644 (file)
@@ -57,7 +57,7 @@ __bswap_32 (unsigned int __bsx)
    `bswap' opcode.  On i386 we have to use three instructions.  */
 #   define __bswap_32(x) \
       (__extension__                                                         \
-       ({ register unsigned int __v, __x = (x);                                      \
+       ({ unsigned int __v, __x = (x);                                       \
          if (__builtin_constant_p (__x))                                     \
            __v = __bswap_constant_32 (__x);                                  \
          else                                                                \
@@ -66,7 +66,7 @@ __bswap_32 (unsigned int __bsx)
 #  else
 #   define __bswap_32(x)                                                     \
       (__extension__                                                         \
-       ({ register unsigned int __v, __x = (x);                                      \
+       ({ unsigned int __v, __x = (x);                                       \
          if (__builtin_constant_p (__x))                                     \
            __v = __bswap_constant_32 (__x);                                  \
          else                                                                \
@@ -81,7 +81,7 @@ __bswap_32 (unsigned int __bsx)
 # else
 #  define __bswap_32(x) \
      (__extension__                                                          \
-      ({ register unsigned int __x = (x); __bswap_constant_32 (__x); }))
+      ({ unsigned int __x = (x); __bswap_constant_32 (__x); }))
 # endif
 #else
 static __inline unsigned int
@@ -113,7 +113,7 @@ __bswap_64 (__uint64_t __bsx)
 # elif __WORDSIZE == 64
 #  define __bswap_64(x) \
      (__extension__                                                          \
-      ({ register __uint64_t __v, __x = (x);                                 \
+      ({ __uint64_t __v, __x = (x);                                          \
         if (__builtin_constant_p (__x))                                      \
           __v = __bswap_constant_64 (__x);                                   \
         else                                                                 \
index 5c386525ea4930b50b10c553db82fb7adda4db8c..361763a9a0c5d1e8fcc343725fba7e01825e4a2d 100644 (file)
@@ -24,7 +24,7 @@ int
 main (int argc, char **argv)
 {
   time_t t;
-  register struct tm *tp;
+  struct tm *tp;
   struct tm tbuf;
   int lose = 0;
 
index 2e3a7b69bfe0cd95b3e6c3f765f05f62e4d22441..9dd5130757b30c16a402a300bc8e354e06f1defb 100644 (file)
@@ -104,10 +104,10 @@ __tzfile_read (const char *file, size_t extra, char **extrap)
 {
   static const char default_tzdir[] = TZDIR;
   size_t num_isstd, num_isgmt;
-  register FILE *f;
+  FILE *f;
   struct tzhead tzhead;
   size_t chars;
-  register size_t i;
+  size_t i;
   size_t total_size;
   size_t types_idx;
   size_t leaps_idx;
@@ -630,7 +630,7 @@ __tzfile_compute (time_t timer, int use_localtime,
                  long int *leap_correct, int *leap_hit,
                  struct tm *tp)
 {
-  register size_t i;
+  size_t i;
 
   if (use_localtime)
     {
index 843f661fb8be8e0625d1cc7c0ff37bb7acde3a8d..0064cb01330735decfa54bdb42706f5f34d18326 100644 (file)
@@ -300,7 +300,7 @@ __tzset_parse_tz (tz)
   /* Figure out the standard <-> DST rules.  */
   for (unsigned int whichrule = 0; whichrule < 2; ++whichrule)
     {
-      register tz_rule *tzr = &tz_rules[whichrule];
+      tz_rule *tzr = &tz_rules[whichrule];
 
       /* Ignore comma to support string following the incorrect
         specification in early POSIX.1 printings.  */
@@ -400,7 +400,7 @@ tzset_internal (always, explicit)
      int explicit;
 {
   static int is_initialized;
-  register const char *tz;
+  const char *tz;
 
   if (is_initialized && !always)
     return;
@@ -471,7 +471,7 @@ compute_change (rule, year)
      tz_rule *rule;
      int year;
 {
-  register time_t t;
+  time_t t;
 
   if (year != -1 && rule->computed_for == year)
     /* Operations on times in 2 BC will be slower.  Oh well.  */
index e13e9d242c1467a792f1bd271b011d2373e2900c..7ab7969f5750c524dd98db321f1ca26382b6fdac 100644 (file)
@@ -25,8 +25,8 @@ __wcscat (dest, src)
      wchar_t *dest;
      const wchar_t *src;
 {
-  register wchar_t *s1 = dest;
-  register const wchar_t *s2 = src;
+  wchar_t *s1 = dest;
+  const wchar_t *s2 = src;
   wchar_t c;
 
   /* Find the end of the string.  */
index 3b5b63d82fbcbedd27bccb50251a9b7c0d13644b..22872eead3948899279417dbdbf72ca789c6e52d 100644 (file)
@@ -24,8 +24,8 @@
 
 wchar_t *
 wcschr (wcs, wc)
-     register const wchar_t *wcs;
-     register const wchar_t wc;
+     const wchar_t *wcs;
+     const wchar_t wc;
 {
   do
     if (*wcs == wc)
index 040aa70bc921f14b06d84cdcc23f491d2940b6d5..d6b12311134166b166b7f53a9c9ad0c9bb8c18a9 100644 (file)
@@ -21,8 +21,8 @@
 /* Find the first occurrence of WC in WCS.  */
 wchar_t *
 __wcschrnul (wcs, wc)
-     register const wchar_t *wcs;
-     register const wchar_t wc;
+     const wchar_t *wcs;
+     const wchar_t wc;
 {
   while (*wcs != L'\0')
     if (*wcs == wc)
index 281de360cdbad22b7004050f32755246c0fabab6..a25da0f1e08137bc591dcd647abd9bdd7f8a0888 100644 (file)
@@ -26,7 +26,7 @@ wcscspn (wcs, reject)
      const wchar_t *wcs;
      const wchar_t *reject;
 {
-  register size_t count = 0;
+  size_t count = 0;
 
   while (*wcs != L'\0')
     if (wcschr (reject, *wcs++) == NULL)
index 2a417a5897942d806d5d52db72b1a0a6d15ab03e..5a3438fac63d13817ebcfa5ea5e6694066eabc72 100644 (file)
@@ -22,8 +22,8 @@
 /* Find the first occurrence in WCS of any wide-character in ACCEPT.  */
 wchar_t *
 wcspbrk (wcs, accept)
-     register const wchar_t *wcs;
-     register const wchar_t *accept;
+     const wchar_t *wcs;
+     const wchar_t *accept;
 {
   while (*wcs != L'\0')
     if (wcschr (accept, *wcs) == NULL)
index 7c3bc968e7bfaafc18ec4cb58284b20ec1a2570f..e30b851b7ef1c173e773594ed24315d21f0d6435 100644 (file)
@@ -22,8 +22,8 @@
 /* Find the last occurrence of WC in WCS.  */
 wchar_t *
 wcsrchr (wcs, wc)
-     register const wchar_t *wcs;
-     register const wchar_t wc;
+     const wchar_t *wcs;
+     const wchar_t wc;
 {
   const wchar_t *retval = NULL;
 
index d8597c52aabb22f671773293f9ecc9ddab4e03b2..709b61b39cb5c389f041074fcd1974b029fcb5bd 100644 (file)
@@ -26,9 +26,9 @@ wcsspn (wcs, accept)
      const wchar_t *wcs;
      const wchar_t *accept;
 {
-  register const wchar_t *p;
-  register const wchar_t *a;
-  register size_t count = 0;
+  const wchar_t *p;
+  const wchar_t *a;
+  size_t count = 0;
 
   for (p = wcs; *p != L'\0'; ++p)
     {
index 7151571b2533bb9db5563ddd1120a3073f42246d..fe984d141a741bbd83b32cd2dc0b301276c936b7 100644 (file)
@@ -33,7 +33,7 @@ wcsstr (haystack, needle)
      const wchar_t *haystack;
      const wchar_t *needle;
 {
-  register wchar_t b, c;
+  wchar_t b, c;
 
   if ((b = *needle) != L'\0')
     {
@@ -50,8 +50,8 @@ wcsstr (haystack, needle)
 
       for (;;)
        {
-         register wchar_t a;
-         register const wchar_t *rhaystack, *rneedle;
+         wchar_t a;
+         const wchar_t *rhaystack, *rneedle;
 
          do
            {
index 63311f276cec1355b7cb3c3d7f34395dd793129f..237765a2f138da3ac9aae14eb871f70c2be17f4d 100644 (file)
@@ -20,9 +20,9 @@
 
 wchar_t *
 wmemchr (s, c, n)
-     register const wchar_t *s;
-     register wchar_t c;
-     register size_t n;
+     const wchar_t *s;
+     wchar_t c;
+     size_t n;
 {
   /* For performance reasons unfold the loop four times.  */
   while (n >= 4)
index bedb89335e5caff9e1b2c277afcd5075254fe881..37b84b5f38b8c12d0d7c5290400690a6e642d50d 100644 (file)
@@ -28,8 +28,8 @@ WMEMCMP (s1, s2, n)
      const wchar_t *s2;
      size_t n;
 {
-  register wchar_t c1;
-  register wchar_t c2;
+  wchar_t c1;
+  wchar_t c2;
 
   while (n >= 4)
     {
index d5b56afa0ef7ee13acfaa5080c8192255199ab96..fbec915e8a07d76fd6a350064245f40bcd676d6f 100644 (file)
@@ -25,7 +25,7 @@ wmemset (s, c, n)
      wchar_t c;
      size_t n;
 {
-  register wchar_t *wp = s;
+  wchar_t *wp = s;
 
   while (n >= 4)
     {