diff options
author | Joseph Myers <joseph@codesourcery.com> | 2015-06-02 20:38:49 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2015-06-02 20:38:49 +0000 |
commit | e0c349b40c4f51589c2adb63ccdaaf4dcc0fb1ea (patch) | |
tree | af09f53a8011b770b7a71d917905d462125147c9 /ChangeLog | |
parent | 1769608794096c835095826559c0ba1555f43fc0 (diff) | |
download | glibc-e0c349b40c4f51589c2adb63ccdaaf4dcc0fb1ea.tar glibc-e0c349b40c4f51589c2adb63ccdaaf4dcc0fb1ea.tar.gz glibc-e0c349b40c4f51589c2adb63ccdaaf4dcc0fb1ea.tar.bz2 glibc-e0c349b40c4f51589c2adb63ccdaaf4dcc0fb1ea.zip |
Use better variable names in MIPS syscall macros.
Carlos noted in
<https://sourceware.org/ml/libc-alpha/2015-05/msg00680.html> that
various ports use potentially problematic short variables names in
their syscall macros, which could shadow variables with the same name
from containing scopes.
This patch fixes variables called err and ret in MIPS macros. (I left
result_var and _sys_result - separate variables in different macros,
which need separate names - alone.)
Tested for mips64 (all three ABIs) that installed stripped shared
libraries are unchanged by this patch.
* sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL):
Use variable name _sc_err instead of err.
[__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret
instead of ret.
* sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
(INLINE_SYSCALL): Use variable name _sc_err instead of err.
* sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
(INLINE_SYSCALL): Likewise.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1,5 +1,14 @@ 2015-06-02 Joseph Myers <joseph@codesourcery.com> + * sysdeps/unix/sysv/linux/mips/mips32/sysdep.h (INLINE_SYSCALL): + Use variable name _sc_err instead of err. + [__mips16] (INTERNAL_SYSCALL_NCS): Use variable name _sc_ret + instead of ret. + * sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h + (INLINE_SYSCALL): Use variable name _sc_err instead of err. + * sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h + (INLINE_SYSCALL): Likewise. + * string/strnlen.c [!STRNLEN] (__strnlen): Use libc_hidden_def. * include/string.h (__strnlen): Use libc_hidden_proto. * sysdeps/aarch64/strnlen.S (__strnlen): Use libc_hidden_def. |