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.27.9000-114-g54412d2


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  54412d20618b7b93f136a168e788573575f8a7a6 (commit)
      from  81be4b5e38c22bfd77ec8fe6815a45782c19eca1 (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=54412d20618b7b93f136a168e788573575f8a7a6

commit 54412d20618b7b93f136a168e788573575f8a7a6
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Feb 23 13:54:53 2018 +0000

    Use libc_hidden_* for tolower, toupper (bug 15105).
    
    Continuing the fixes for localplt test failures with -Os arising from
    functions not being inlined in that case, this patch fixes such
    failures for tolower and toupper by using libc_hidden_proto and
    libc_hidden_def.
    
    Tested for x86_64 (both that it removes this particular localplt
    failure for -Os, and that the testsuite continues to pass without
    -Os).
    
    2018-02-22  Joseph Myers  <joseph@codesourcery.com>
    
    	[BZ #15105]
    	* ctype/ctype.c (tolower): Use libc_hidden_def.
    	(toupper): Likewise.
    	* include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
    	[!_ISOMAC] (toupper): Likewise.

diff --git a/ChangeLog b/ChangeLog
index e3d251c..e14f3d8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-02-23  Joseph Myers  <joseph@codesourcery.com>
+
+	[BZ #15105]
+	* ctype/ctype.c (tolower): Use libc_hidden_def.
+	(toupper): Likewise.
+	* include/ctype.h [!_ISOMAC] (tolower): Use libc_hidden_proto.
+	[!_ISOMAC] (toupper): Likewise.
+
 2018-02-23  Mike FABIAN  <mfabian@redhat.com>
 
 	* localedata/Makefile: Remove --quiet argument when
diff --git a/ctype/ctype.c b/ctype/ctype.c
index e86c5b0..6cb8000 100644
--- a/ctype/ctype.c
+++ b/ctype/ctype.c
@@ -45,9 +45,11 @@ tolower (int c)
 {
   return c >= -128 && c < 256 ? __ctype_tolower[c] : c;
 }
+libc_hidden_def (tolower)
 
 int
 toupper (int c)
 {
   return c >= -128 && c < 256 ? __ctype_toupper[c] : c;
 }
+libc_hidden_def (toupper)
diff --git a/include/ctype.h b/include/ctype.h
index ac6db79..493a6f8 100644
--- a/include/ctype.h
+++ b/include/ctype.h
@@ -11,6 +11,9 @@ libc_hidden_proto (__ctype_init)
    So defeat macro expansion with parens for this declaration.  */
 extern int (__isctype) (int __c, int __mask);
 
+libc_hidden_proto (tolower)
+libc_hidden_proto (toupper)
+
 # if IS_IN (libc)
 
 /* These accessors are used by the optimized macros to find the

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

Summary of changes:
 ChangeLog       |    8 ++++++++
 ctype/ctype.c   |    2 ++
 include/ctype.h |    3 +++
 3 files changed, 13 insertions(+), 0 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]