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.15-1124-gebc64a1
- From: hjl at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 1 Jun 2012 03:35:38 -0000
- Subject: GNU C Library master sources branch, master, updated. glibc-2.15-1124-gebc64a1
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 ebc64a18c07742ebb85d7ddeca376995c0e67593 (commit)
from edf2933a37d2c52b30e3730ae3df7b3d465dc958 (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://sources.redhat.com/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=ebc64a18c07742ebb85d7ddeca376995c0e67593
commit ebc64a18c07742ebb85d7ddeca376995c0e67593
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Thu May 31 20:35:10 2012 -0700
Support __WORDSIZE == 64 in i386 bits/wchar.h
diff --git a/ChangeLog b/ChangeLog
index 3a2b7e6..6cb9f2d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,11 @@
2012-05-31 H.J. Lu <hongjiu.lu@intel.com>
[BZ #14117]
+ * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
+ <bits/wordsize.h>.
+ (__WCHAR_MIN): Support __WORDSIZE == 64.
+ (__WCHAR_MAX): Likewise.
+
* sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
* sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
diff --git a/sysdeps/unix/sysv/linux/i386/bits/wchar.h b/sysdeps/unix/sysv/linux/i386/bits/wchar.h
index b94fc7a..ec0f34a 100644
--- a/sysdeps/unix/sysv/linux/i386/bits/wchar.h
+++ b/sysdeps/unix/sysv/linux/i386/bits/wchar.h
@@ -1,5 +1,5 @@
-/* wchar_t type related definitions.
- Copyright (C) 2000 Free Software Foundation, Inc.
+/* wchar_t type related definitions. i386/x86-64 version.
+ Copyright (C) 2000-2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -19,7 +19,14 @@
#ifndef _BITS_WCHAR_H
#define _BITS_WCHAR_H 1
-#define __WCHAR_MIN (-2147483647l - 1l)
-#define __WCHAR_MAX (2147483647l)
+#include <bits/wordsize.h>
+
+#if __WORDSIZE == 64
+# define __WCHAR_MIN (-2147483647 - 1)
+# define __WCHAR_MAX (2147483647)
+#else
+# define __WCHAR_MIN (-2147483647l - 1l)
+# define __WCHAR_MAX (2147483647l)
+#endif
#endif /* bits/wchar.h */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 5 +++++
sysdeps/unix/sysv/linux/i386/bits/wchar.h | 15 +++++++++++----
2 files changed, 16 insertions(+), 4 deletions(-)
hooks/post-receive
--
GNU C Library master sources