diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-06-07 22:24:35 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-06-07 22:24:35 +0000 |
commit | 2e09a79ada1f6d92809a037d41895e3d9302ad59 (patch) | |
tree | 999c9d18279a7de289937116273ae4016356aa3a /libio | |
parent | 8e254d8e0d0820716e0ccf5f2b89c4fd1325f051 (diff) | |
download | glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.tar.gz |
Avoid use of "register" as optimization hint.
Diffstat (limited to 'libio')
-rw-r--r-- | libio/fileops.c | 14 | ||||
-rw-r--r-- | libio/iofopncook.c | 4 | ||||
-rw-r--r-- | libio/oldfileops.c | 8 | ||||
-rw-r--r-- | libio/wfileops.c | 8 |
4 files changed, 17 insertions, 17 deletions
diff --git a/libio/fileops.c b/libio/fileops.c index 61b61b30d8..e92f85b243 100644 --- a/libio/fileops.c +++ b/libio/fileops.c @@ -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; diff --git a/libio/iofopncook.c b/libio/iofopncook.c index 386704215d..34db0cb7f2 100644 --- a/libio/iofopncook.c +++ b/libio/iofopncook.c @@ -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, diff --git a/libio/oldfileops.c b/libio/oldfileops.c index 80e4b57ee2..c9537f4d87 100644 --- a/libio/oldfileops.c +++ b/libio/oldfileops.c @@ -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; diff --git a/libio/wfileops.c b/libio/wfileops.c index d59abbdce7..0a156eaad4 100644 --- a/libio/wfileops.c +++ b/libio/wfileops.c @@ -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; |