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.24-210-gff88ee7
- From: jsm28 at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 4 Oct 2016 16:18:29 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.24-210-gff88ee7
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 ff88ee7edfaa439e23c42fccaf3a36cd5f041894 (commit)
from 22938c4103a4b0b6e8d4b3d50a1c41e3f27dd73e (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=ff88ee7edfaa439e23c42fccaf3a36cd5f041894
commit ff88ee7edfaa439e23c42fccaf3a36cd5f041894
Author: Joseph Myers <joseph@codesourcery.com>
Date: Tue Oct 4 16:17:59 2016 +0000
Fix LONG_WIDTH, ULONG_WIDTH include ordering issue.
As described in
<https://sourceware.org/ml/libc-alpha/2016-10/msg00047.html>, there is
an include ordering issue with the integer width macros in glibc's
<limits.h>, where definitions conditional on LONG_MAX do not work as
intended because when the headers are installed, this part of glibc's
<limits.h> is processed before the part of GCC's <limits.h> that will
define LONG_MAX. This patch changes the definitions just to use
__WORDSIZE for the expansion of LONG_WIDTH and ULONG_WIDTH rather than
making those definitions conditional on LONG_MAX.
Tested for x86_64 and x86.
* include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
Define to __WORDSIZE, not conditional on [LONG_MAX ==
0x7fffffffL].
[__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
diff --git a/ChangeLog b/ChangeLog
index 9ea007a..7c2139b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2016-10-04 Joseph Myers <joseph@codesourcery.com>
+
+ * include/limits.h [__GLIBC_USE (IEC_60559_BFP_EXT)] (LONG_WIDTH):
+ Define to __WORDSIZE, not conditional on [LONG_MAX ==
+ 0x7fffffffL].
+ [__GLIBC_USE (IEC_60559_BFP_EXT)] (ULONG_WIDTH): Likewise.
+
2016-10-04 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
* sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Replace
diff --git a/include/limits.h b/include/limits.h
index 93cac49..dd601d5 100644
--- a/include/limits.h
+++ b/include/limits.h
@@ -164,20 +164,11 @@
# ifndef UINT_WIDTH
# define UINT_WIDTH 32
# endif
-# if LONG_MAX == 0x7fffffffL
-# ifndef LONG_WIDTH
-# define LONG_WIDTH 32
-# endif
-# ifndef ULONG_WIDTH
-# define ULONG_WIDTH 32
-# endif
-# else
-# ifndef LONG_WIDTH
-# define LONG_WIDTH 64
-# endif
-# ifndef ULONG_WIDTH
-# define ULONG_WIDTH 64
-# endif
+# ifndef LONG_WIDTH
+# define LONG_WIDTH __WORDSIZE
+# endif
+# ifndef ULONG_WIDTH
+# define ULONG_WIDTH __WORDSIZE
# endif
# ifndef LLONG_WIDTH
# define LLONG_WIDTH 64
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 7 +++++++
include/limits.h | 19 +++++--------------
2 files changed, 12 insertions(+), 14 deletions(-)
hooks/post-receive
--
GNU C Library master sources