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 /ports | |
parent | 8e254d8e0d0820716e0ccf5f2b89c4fd1325f051 (diff) | |
download | glibc-2e09a79ada1f6d92809a037d41895e3d9302ad59.tar.gz |
Avoid use of "register" as optimization hint.
Diffstat (limited to 'ports')
-rw-r--r-- | ports/ChangeLog.ia64 | 8 | ||||
-rw-r--r-- | ports/sysdeps/ia64/bits/byteswap-16.h | 2 | ||||
-rw-r--r-- | ports/sysdeps/ia64/bits/byteswap.h | 4 |
3 files changed, 11 insertions, 3 deletions
diff --git a/ports/ChangeLog.ia64 b/ports/ChangeLog.ia64 index 46cddaff0e..09cb121fa1 100644 --- a/ports/ChangeLog.ia64 +++ b/ports/ChangeLog.ia64 @@ -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 diff --git a/ports/sysdeps/ia64/bits/byteswap-16.h b/ports/sysdeps/ia64/bits/byteswap-16.h index 2ff9b749c9..d91824e5b2 100644 --- a/ports/sysdeps/ia64/bits/byteswap-16.h +++ b/ports/sysdeps/ia64/bits/byteswap-16.h @@ -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 \ diff --git a/ports/sysdeps/ia64/bits/byteswap.h b/ports/sysdeps/ia64/bits/byteswap.h index b9b590269a..447cadfe73 100644 --- a/ports/sysdeps/ia64/bits/byteswap.h +++ b/ports/sysdeps/ia64/bits/byteswap.h @@ -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 \ |