This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.19-361-geb1ed03
- From: roland at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 5 May 2014 20:06:58 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.19-361-geb1ed03
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 eb1ed03dafcd9a7ea6e95b958413342e20b35968 (commit)
from 19c4bec0f43599eecc2f32de96ae179cd7d64053 (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=eb1ed03dafcd9a7ea6e95b958413342e20b35968
commit eb1ed03dafcd9a7ea6e95b958413342e20b35968
Author: Roland McGrath <roland@hack.frob.com>
Date: Mon May 5 13:06:18 2014 -0700
Fix -Wundef issues in generated errlist.c.
diff --git a/ChangeLog b/ChangeLog
index ad0484b..25149d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2014-05-05 Roland McGrath <roland@hack.frob.com>
+
+ * sysdeps/gnu/errlist.awk (BEGIN): Emit an initial #define of ERR_MAX
+ to 0, so the first #if test emitted later doesn't see it undefined.
+ (END): Emit "!defined ERRLIST_NO_COMPAT" to match what BEGIN does.
+ * sysdeps/gnu/errlist.c: Regenerated.
+
2014-05-04 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
* sysdeps/powerpc/powerpc32/power4/multiarch/memchr-ppc32.c
diff --git a/sysdeps/gnu/errlist.awk b/sysdeps/gnu/errlist.awk
index 654984b..7fa5305 100644
--- a/sysdeps/gnu/errlist.awk
+++ b/sysdeps/gnu/errlist.awk
@@ -52,6 +52,7 @@ BEGIN {
print "#ifdef ERR_MAX";
print "# define ERRLIST_SIZE ERR_MAX + 1";
print "#else"
+ print "# define ERR_MAX 0";
print "# define ERRLIST_SIZE";
print "#endif";
@@ -109,7 +110,7 @@ END {
print " (sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0])";
print "const int _sys_nerr_internal = NERR;"
print "";
- print "#if !defined NOT_IN_libc && !ERRLIST_NO_COMPAT";
+ print "#if !defined NOT_IN_libc && !defined ERRLIST_NO_COMPAT";
print "# include <errlist-compat.c>";
print "#endif";
print "";
diff --git a/sysdeps/gnu/errlist.c b/sysdeps/gnu/errlist.c
index 2303453..8381434 100644
--- a/sysdeps/gnu/errlist.c
+++ b/sysdeps/gnu/errlist.c
@@ -13,6 +13,7 @@
#ifdef ERR_MAX
# define ERRLIST_SIZE ERR_MAX + 1
#else
+# define ERR_MAX 0
# define ERRLIST_SIZE
#endif
const char *const _sys_errlist_internal[ERRLIST_SIZE] =
@@ -1479,7 +1480,7 @@ TRANS error; @pxref{Cancel AIO Operations}. */
(sizeof _sys_errlist_internal / sizeof _sys_errlist_internal [0])
const int _sys_nerr_internal = NERR;
-#if !defined NOT_IN_libc && !ERRLIST_NO_COMPAT
+#if !defined NOT_IN_libc && !defined ERRLIST_NO_COMPAT
# include <errlist-compat.c>
#endif
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
sysdeps/gnu/errlist.awk | 3 ++-
sysdeps/gnu/errlist.c | 3 ++-
3 files changed, 11 insertions(+), 2 deletions(-)
hooks/post-receive
--
GNU C Library master sources