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-141-g000f290


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  000f290ff179c9910f09b7f76797bdab575abb15 (commit)
      from  02f2fead8f702676a4691781432dff2422669dfd (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=000f290ff179c9910f09b7f76797bdab575abb15

commit 000f290ff179c9910f09b7f76797bdab575abb15
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Wed Feb 28 14:16:21 2018 +0000

    Use libc_hidden_* for strtoumax (bug 15105).
    
    On sparc, localplt test failures appear when building with -Os because
    of a call to strtoumax from
    sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c, and strtoumax
    is not inlined when building with -Os.  This patch fixes those
    failures by using libc_hidden_proto and libc_hidden_def for strtoumax.
    
    Tested with build-many-glibcs.py for
    sparc64-linux-gnu-disable-multi-arch, sparc64-linux-gnu,
    sparcv9-linux-gnu-disable-multi-arch, sparcv9-linux-gnu that this
    fixes that test failure with -Os.
    
    	[BZ #15105]
    	* sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
    	libc_hidden_def.
    	* sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
    	* include/inttypes.h: New file.

diff --git a/ChangeLog b/ChangeLog
index 72f03aa..56ef286 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-02-28  Joseph Myers  <joseph@codesourcery.com>
+
+	[BZ #15105]
+	* sysdeps/wordsize-32/strtoumax.c (strtoumax): Use
+	libc_hidden_def.
+	* sysdeps/wordsize-64/strtoumax.c (strtoumax): Likewise.
+	* include/inttypes.h: New file.
+
 2018-02-27  Joseph Myers  <joseph@codesourcery.com>
 
 	* locale/weightwc.h (findidx): Ignore -Wmaybe-uninitialized for
diff --git a/include/inttypes.h b/include/inttypes.h
new file mode 100644
index 0000000..33219e2
--- /dev/null
+++ b/include/inttypes.h
@@ -0,0 +1,6 @@
+#ifndef _INTTYPES_H
+#include_next <inttypes.h>
+#ifndef _ISOMAC
+libc_hidden_proto (strtoumax)
+#endif
+#endif
diff --git a/sysdeps/wordsize-32/strtoumax.c b/sysdeps/wordsize-32/strtoumax.c
index 7f19ff0..cabd4d8 100644
--- a/sysdeps/wordsize-32/strtoumax.c
+++ b/sysdeps/wordsize-32/strtoumax.c
@@ -25,3 +25,4 @@ strtoumax (const char *__restrict nptr, char **__restrict endptr, int base)
 {
   return __strtoull_internal (nptr, endptr, base, 0);
 }
+libc_hidden_def (strtoumax)
diff --git a/sysdeps/wordsize-64/strtoumax.c b/sysdeps/wordsize-64/strtoumax.c
index bc7dd43..0446845 100644
--- a/sysdeps/wordsize-64/strtoumax.c
+++ b/sysdeps/wordsize-64/strtoumax.c
@@ -25,3 +25,4 @@ strtoumax (const char *__restrict nptr, char **__restrict endptr, int base)
 {
   return __strtoul_internal (nptr, endptr, base, 0);
 }
+libc_hidden_def (strtoumax)

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

Summary of changes:
 ChangeLog                       |    8 ++++++++
 include/inttypes.h              |    6 ++++++
 sysdeps/wordsize-32/strtoumax.c |    1 +
 sysdeps/wordsize-64/strtoumax.c |    1 +
 4 files changed, 16 insertions(+), 0 deletions(-)
 create mode 100644 include/inttypes.h


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]