This is the mail archive of the glibc-cvs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.21-427-ge0c349b


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  e0c349b40c4f51589c2adb63ccdaaf4dcc0fb1ea (commit)
      from  1769608794096c835095826559c0ba1555f43fc0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=e0c349b40c4f51589c2adb63ccdaaf4dcc0fb1ea

commit e0c349b40c4f51589c2adb63ccdaaf4dcc0fb1ea
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Jun 2 20:38:49 2015 +0000

    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.

diff --git a/ChangeLog b/ChangeLog
index 1c67d99..8abe7b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h b/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
index e5025ba..a2aa38d 100644
--- a/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
+++ b/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h
@@ -49,11 +49,11 @@
    call.  */
 #undef INLINE_SYSCALL
 #define INLINE_SYSCALL(name, nr, args...)                               \
-  ({ INTERNAL_SYSCALL_DECL(err);					\
-     long result_var = INTERNAL_SYSCALL (name, err, nr, args);		\
-     if ( INTERNAL_SYSCALL_ERROR_P (result_var, err) )			\
+  ({ INTERNAL_SYSCALL_DECL (_sc_err);					\
+     long result_var = INTERNAL_SYSCALL (name, _sc_err, nr, args);	\
+     if ( INTERNAL_SYSCALL_ERROR_P (result_var, _sc_err) )		\
        {								\
-	 __set_errno (INTERNAL_SYSCALL_ERRNO (result_var, err));	\
+	 __set_errno (INTERNAL_SYSCALL_ERRNO (result_var, _sc_err));	\
 	 result_var = -1L;						\
        }								\
      result_var; })
@@ -111,10 +111,10 @@
 
 # define INTERNAL_SYSCALL_NCS(number, err, nr, args...)			\
 ({									\
-	union __mips16_syscall_return ret;				\
-	ret.val = __mips16_syscall##nr (args, number);			\
-	err = ret.reg.v1;						\
-	ret.reg.v0;							\
+	union __mips16_syscall_return _sc_ret;				\
+	_sc_ret.val = __mips16_syscall##nr (args, number);		\
+	err = _sc_ret.reg.v1;						\
+	_sc_ret.reg.v0;							\
 })
 
 # define INTERNAL_SYSCALL_MIPS16(number, err, nr, args...)		\
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h b/sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
index ac663bc..4c28af6 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h
@@ -51,11 +51,11 @@
    call.  */
 #undef INLINE_SYSCALL
 #define INLINE_SYSCALL(name, nr, args...)				\
-  ({ INTERNAL_SYSCALL_DECL(err);					\
-     long result_var = INTERNAL_SYSCALL (name, err, nr, args);		\
-     if ( INTERNAL_SYSCALL_ERROR_P (result_var, err) )			\
+  ({ INTERNAL_SYSCALL_DECL (_sc_err);					\
+     long result_var = INTERNAL_SYSCALL (name, _sc_err, nr, args);	\
+     if ( INTERNAL_SYSCALL_ERROR_P (result_var, _sc_err) )		\
        {								\
-	 __set_errno (INTERNAL_SYSCALL_ERRNO (result_var, err));	\
+	 __set_errno (INTERNAL_SYSCALL_ERRNO (result_var, _sc_err));	\
 	 result_var = -1L;						\
        }								\
      result_var; })
diff --git a/sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h b/sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
index 312f210..1fc038c 100644
--- a/sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
+++ b/sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h
@@ -47,11 +47,11 @@
    call.  */
 #undef INLINE_SYSCALL
 #define INLINE_SYSCALL(name, nr, args...)				\
-  ({ INTERNAL_SYSCALL_DECL(err);					\
-     long result_var = INTERNAL_SYSCALL (name, err, nr, args);		\
-     if ( INTERNAL_SYSCALL_ERROR_P (result_var, err) )			\
+  ({ INTERNAL_SYSCALL_DECL (_sc_err);					\
+     long result_var = INTERNAL_SYSCALL (name, _sc_err, nr, args);	\
+     if ( INTERNAL_SYSCALL_ERROR_P (result_var, _sc_err) )		\
        {								\
-	 __set_errno (INTERNAL_SYSCALL_ERRNO (result_var, err));	\
+	 __set_errno (INTERNAL_SYSCALL_ERRNO (result_var, _sc_err));	\
 	 result_var = -1L;						\
        }								\
      result_var; })

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                                        |    9 +++++++++
 sysdeps/unix/sysv/linux/mips/mips32/sysdep.h     |   16 ++++++++--------
 sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h |    8 ++++----
 sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h |    8 ++++----
 4 files changed, 25 insertions(+), 16 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]