summaryrefslogtreecommitdiffstats
path: root/patches/gcc-4.1.2/generic/uclibc/200-uclibc-locale.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/gcc-4.1.2/generic/uclibc/200-uclibc-locale.patch')
-rw-r--r--patches/gcc-4.1.2/generic/uclibc/200-uclibc-locale.patch197
1 files changed, 141 insertions, 56 deletions
diff --git a/patches/gcc-4.1.2/generic/uclibc/200-uclibc-locale.patch b/patches/gcc-4.1.2/generic/uclibc/200-uclibc-locale.patch
index e5d712e..41f0de0 100644
--- a/patches/gcc-4.1.2/generic/uclibc/200-uclibc-locale.patch
+++ b/patches/gcc-4.1.2/generic/uclibc/200-uclibc-locale.patch
@@ -1,6 +1,49 @@
---- gcc-4.1.0-dist/libstdc++-v3/acinclude.m4
-+++ gcc-4.1.0/libstdc++-v3/acinclude.m4
-@@ -1071,7 +1071,7 @@
+From: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/200-uclibc-locale.patch
+
+Path: 200-uclibc-locale.patch
+Name: 200-uclibc-locale.patch
+URL: svn://uclibc.org/trunk/buildroot/toolchain/gcc/4.1.2/200-uclibc-locale.patch
+Repository Root: svn://uclibc.org
+Repository UUID: 69ca8d6d-28ef-0310-b511-8ec308f3f277
+Revision: 21884
+Node Kind: file
+Schedule: normal
+Last Changed Author: vapier
+Last Changed Rev: 15550
+Last Changed Date: 2006-06-30 03:22:21 +0200 (Fri, 30 Jun 2006)
+Text Last Updated: 2008-03-27 14:45:05 +0100 (Thu, 27 Mar 2008)
+Checksum: d7ea91df6ff85e6ade87d90ec7a90ba9
+
+---
+ libstdc++-v3/acinclude.m4 | 39
+ libstdc++-v3/config/locale/uclibc/c++locale_internal.h | 63 +
+ libstdc++-v3/config/locale/uclibc/c_locale.cc | 152 +++
+ libstdc++-v3/config/locale/uclibc/c_locale.h | 117 ++
+ libstdc++-v3/config/locale/uclibc/codecvt_members.cc | 306 +++++++
+ libstdc++-v3/config/locale/uclibc/collate_members.cc | 80 +
+ libstdc++-v3/config/locale/uclibc/ctype_members.cc | 314 +++++++
+ libstdc++-v3/config/locale/uclibc/messages_members.cc | 100 ++
+ libstdc++-v3/config/locale/uclibc/messages_members.h | 121 ++
+ libstdc++-v3/config/locale/uclibc/monetary_members.cc | 692 +++++++++++++++++
+ libstdc++-v3/config/locale/uclibc/numeric_members.cc | 173 ++++
+ libstdc++-v3/config/locale/uclibc/time_members.cc | 406 +++++++++
+ libstdc++-v3/config/locale/uclibc/time_members.h | 76 +
+ libstdc++-v3/config/os/uclibc/ctype_base.h | 64 +
+ libstdc++-v3/config/os/uclibc/ctype_inline.h | 69 +
+ libstdc++-v3/config/os/uclibc/ctype_noninline.h | 92 ++
+ libstdc++-v3/config/os/uclibc/os_defines.h | 44 +
+ libstdc++-v3/configure | 80 +
+ libstdc++-v3/configure.host | 6
+ libstdc++-v3/crossconfig.m4 | 95 ++
+ libstdc++-v3/include/c_compatibility/wchar.h | 2
+ libstdc++-v3/include/c_std/std_cwchar.h | 2
+ 22 files changed, 3090 insertions(+), 3 deletions(-)
+
+Index: gcc-4.1.2/libstdc++-v3/acinclude.m4
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/acinclude.m4
++++ gcc-4.1.2/libstdc++-v3/acinclude.m4
+@@ -1003,7 +1003,7 @@ AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [
AC_MSG_CHECKING([for C locale to use])
GLIBCXX_ENABLE(clocale,auto,[@<:@=MODEL@:>@],
[use MODEL for target locale package],
@@ -9,7 +52,7 @@
# If they didn't use this option switch, or if they specified --enable
# with no specific model, we'll have to look for one. If they
-@@ -1087,6 +1087,9 @@
+@@ -1019,6 +1019,9 @@ AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [
# Default to "generic".
if test $enable_clocale_flag = auto; then
case ${target_os} in
@@ -19,7 +62,7 @@
linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
AC_EGREP_CPP([_GLIBCXX_ok], [
#include <features.h>
-@@ -1230,6 +1233,40 @@
+@@ -1162,6 +1165,40 @@ AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [
CTIME_CC=config/locale/generic/time_members.cc
CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
;;
@@ -60,8 +103,10 @@
esac
# This is where the testsuite looks for locale catalogs, using the
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
@@ -0,0 +1,63 @@
+// Prototypes for GLIBC thread locale __-prefixed functions -*- C++ -*-
+
@@ -126,8 +171,10 @@
+#endif
+
+#endif // GLIBC 2.3 and later
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c_locale.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c_locale.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c_locale.cc
@@ -0,0 +1,152 @@
+// Wrapper for underlying C-language localization -*- C++ -*-
+
@@ -281,8 +328,10 @@
+{
+ const char* const* const locale::_S_categories = __gnu_cxx::category_names;
+} // namespace std
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.h
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c_locale.h
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c_locale.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c_locale.h
@@ -0,0 +1,117 @@
+// Wrapper for underlying C-language localization -*- C++ -*-
+
@@ -401,8 +450,10 @@
+}
+
+#endif
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
@@ -0,0 +1,306 @@
+// std::codecvt implementation details, GNU version -*- C++ -*-
+
@@ -710,8 +761,10 @@
+ }
+#endif
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/collate_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/collate_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/collate_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/collate_members.cc
@@ -0,0 +1,80 @@
+// std::collate implementation details, GNU version -*- C++ -*-
+
@@ -793,8 +846,10 @@
+ { return __wcsxfrm_l(__to, __from, __n, _M_c_locale_collate); }
+#endif
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/ctype_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/ctype_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/ctype_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/ctype_members.cc
@@ -0,0 +1,314 @@
+// std::ctype implementation details, GNU version -*- C++ -*-
+
@@ -1110,8 +1165,10 @@
+ }
+#endif // _GLIBCXX_USE_WCHAR_T
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/messages_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/messages_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/messages_members.cc
@@ -0,0 +1,100 @@
+// std::messages implementation details, GNU version -*- C++ -*-
+
@@ -1213,8 +1270,10 @@
+ }
+#endif
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.h
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/messages_members.h
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/messages_members.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/messages_members.h
@@ -0,0 +1,121 @@
+// std::messages implementation details, GNU version -*- C++ -*-
+
@@ -1337,8 +1396,10 @@
+ this->_S_create_c_locale(this->_M_c_locale_messages, __s);
+ }
+ }
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/monetary_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/monetary_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/monetary_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/monetary_members.cc
@@ -0,0 +1,692 @@
+// std::moneypunct implementation details, GNU version -*- C++ -*-
+
@@ -2032,8 +2093,10 @@
+ }
+#endif
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/numeric_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/numeric_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/numeric_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/numeric_members.cc
@@ -0,0 +1,173 @@
+// std::numpunct implementation details, GNU version -*- C++ -*-
+
@@ -2208,8 +2271,10 @@
+ { delete _M_data; }
+ #endif
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.cc
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/time_members.cc
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/time_members.cc
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/time_members.cc
@@ -0,0 +1,406 @@
+// std::time_get, std::time_put implementation, GNU version -*- C++ -*-
+
@@ -2617,8 +2682,10 @@
+ }
+#endif
+}
---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.h
-+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/time_members.h
+Index: gcc-4.1.2/libstdc++-v3/config/locale/uclibc/time_members.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/time_members.h
@@ -0,0 +1,76 @@
+// std::time_get, std::time_put implementation, GNU version -*- C++ -*-
+
@@ -2696,8 +2763,10 @@
+ delete _M_data;
+ _S_destroy_c_locale(_M_c_locale_timepunct);
+ }
---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_base.h
-+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_base.h
+Index: gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_base.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_base.h
@@ -0,0 +1,64 @@
+// Locale support -*- C++ -*-
+
@@ -2763,8 +2832,10 @@
+ static const mask punct = _ISpunct;
+ static const mask alnum = _ISalpha | _ISdigit;
+ };
---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_inline.h
-+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_inline.h
+Index: gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_inline.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_inline.h
@@ -0,0 +1,69 @@
+// Locale support -*- C++ -*-
+
@@ -2835,8 +2906,10 @@
+ ++__low;
+ return __low;
+ }
---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_noninline.h
-+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_noninline.h
+Index: gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_noninline.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_noninline.h
@@ -0,0 +1,92 @@
+// Locale support -*- C++ -*-
+
@@ -2930,8 +3003,10 @@
+ }
+ return __high;
+ }
---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/os_defines.h
-+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/os_defines.h
+Index: gcc-4.1.2/libstdc++-v3/config/os/uclibc/os_defines.h
+===================================================================
+--- /dev/null
++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/os_defines.h
@@ -0,0 +1,44 @@
+// Specific definitions for GNU/Linux -*- C++ -*-
+
@@ -2977,9 +3052,11 @@
+#define __NO_STRING_INLINES
+
+#endif
---- gcc-4.1.0-dist/libstdc++-v3/configure
-+++ gcc-4.1.0/libstdc++-v3/configure
-@@ -4005,6 +4005,11 @@
+Index: gcc-4.1.2/libstdc++-v3/configure
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/configure
++++ gcc-4.1.2/libstdc++-v3/configure
+@@ -4005,6 +4005,11 @@ linux-gnu*)
lt_cv_deplibs_check_method=pass_all
;;
@@ -2991,7 +3068,7 @@
netbsd* | knetbsd*-gnu)
if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
-@@ -5740,7 +5745,7 @@
+@@ -5740,7 +5745,7 @@ if test "${enable_clocale+set}" = set; t
enableval="$enable_clocale"
case "$enableval" in
@@ -3000,7 +3077,7 @@
*) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable clocale" >&5
echo "$as_me: error: Unknown argument to enable/disable clocale" >&2;}
{ (exit 1); exit 1; }; } ;;
-@@ -5765,6 +5770,9 @@
+@@ -5765,6 +5770,9 @@ fi;
# Default to "generic".
if test $enable_clocale_flag = auto; then
case ${target_os} in
@@ -3010,7 +3087,7 @@
linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
-@@ -5995,6 +6003,76 @@
+@@ -5995,6 +6003,76 @@ echo "${ECHO_T}IEEE 1003.1" >&6
CTIME_CC=config/locale/generic/time_members.cc
CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
;;
@@ -3087,9 +3164,11 @@
esac
# This is where the testsuite looks for locale catalogs, using the
---- gcc-4.1.0-dist/libstdc++-v3/configure.host
-+++ gcc-4.1.0/libstdc++-v3/configure.host
-@@ -261,6 +261,12 @@
+Index: gcc-4.1.2/libstdc++-v3/configure.host
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/configure.host
++++ gcc-4.1.2/libstdc++-v3/configure.host
+@@ -270,6 +270,12 @@ case "${host_os}" in
;;
esac
@@ -3102,9 +3181,11 @@
# Set any OS-dependent and CPU-dependent bits.
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
---- gcc-4.1.0-dist/libstdc++-v3/crossconfig.m4
-+++ gcc-4.1.0/libstdc++-v3/crossconfig.m4
-@@ -143,6 +143,99 @@
+Index: gcc-4.1.2/libstdc++-v3/crossconfig.m4
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/crossconfig.m4
++++ gcc-4.1.2/libstdc++-v3/crossconfig.m4
+@@ -143,6 +143,99 @@ case "${host}" in
;;
esac
;;
@@ -3204,7 +3285,7 @@
*-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h \
machine/endian.h machine/param.h sys/machine.h sys/types.h \
-@@ -157,7 +250,7 @@
+@@ -157,7 +250,7 @@ case "${host}" in
AC_DEFINE(HAVE_INT64_T)
case "$target" in
*-uclinux*)
@@ -3213,9 +3294,11 @@
;;
*)
AC_DEFINE(_GLIBCXX_USE_LFS)
---- gcc-4.1.0-dist/libstdc++-v3/include/c_compatibility/wchar.h
-+++ gcc-4.1.0/libstdc++-v3/include/c_compatibility/wchar.h
-@@ -101,7 +101,9 @@
+Index: gcc-4.1.2/libstdc++-v3/include/c_compatibility/wchar.h
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/include/c_compatibility/wchar.h
++++ gcc-4.1.2/libstdc++-v3/include/c_compatibility/wchar.h
+@@ -101,7 +101,9 @@ using std::wmemcmp;
using std::wmemcpy;
using std::wmemmove;
using std::wmemset;
@@ -3225,9 +3308,11 @@
#if _GLIBCXX_USE_C99
using std::wcstold;
---- gcc-4.1.0-dist/libstdc++-v3/include/c_std/std_cwchar.h
-+++ gcc-4.1.0/libstdc++-v3/include/c_std/std_cwchar.h
-@@ -180,7 +180,9 @@
+Index: gcc-4.1.2/libstdc++-v3/include/c_std/std_cwchar.h
+===================================================================
+--- gcc-4.1.2.orig/libstdc++-v3/include/c_std/std_cwchar.h
++++ gcc-4.1.2/libstdc++-v3/include/c_std/std_cwchar.h
+@@ -180,7 +180,9 @@ namespace std
using ::wcscoll;
using ::wcscpy;
using ::wcscspn;