|
|
|
@ -1,9 +1,8 @@
|
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
|
|
|
|
#
|
|
|
|
|
# Filename: package/.../uclibc/pkg_patch/gcc-200-uclibc-locale.patch
|
|
|
|
|
# Copyright (C) 2006 The OpenSDE Project
|
|
|
|
|
# Copyright (C) 2006 The T2 SDE Project
|
|
|
|
|
# Filename: package/.../uclibc/pkg_patch/gcc/200-uclibc-locale.patch
|
|
|
|
|
# Copyright (C) 2009 The OpenSDE Project
|
|
|
|
|
#
|
|
|
|
|
# More information can be found in the files COPYING and README.
|
|
|
|
|
#
|
|
|
|
@ -15,19 +14,18 @@
|
|
|
|
|
# version.
|
|
|
|
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
|
|
|
|
|
|
|
|
|
diff -urN gcc-4.1.0-dist/libstdc++-v3/acinclude.m4 gcc-4.1.0/libstdc++-v3/acinclude.m4
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/acinclude.m4 2006-03-26 12:08:28.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/acinclude.m4 2006-03-25 22:06:30.000000000 -0700
|
|
|
|
|
@@ -1071,7 +1071,7 @@
|
|
|
|
|
AC_MSG_CHECKING([for C locale to use])
|
|
|
|
|
--- gcc/libstdc++-v3/acinclude.m4
|
|
|
|
|
+++ gcc/libstdc++-v3/acinclude.m4
|
|
|
|
|
@@ -1369,7 +1369,7 @@
|
|
|
|
|
AC_DEFUN([GLIBCXX_ENABLE_CLOCALE], [
|
|
|
|
|
GLIBCXX_ENABLE(clocale,auto,[@<:@=MODEL@:>@],
|
|
|
|
|
[use MODEL for target locale package],
|
|
|
|
|
- [permit generic|gnu|ieee_1003.1-2001|yes|no|auto])
|
|
|
|
|
+ [permit generic|gnu|ieee_1003.1-2001|uclibc|yes|no|auto])
|
|
|
|
|
|
|
|
|
|
# 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 @@
|
|
|
|
|
# Deal with gettext issues. Default to not using it (=no) until we detect
|
|
|
|
|
# support for it later. Let the user turn it off via --e/d, but let that
|
|
|
|
|
@@ -1385,6 +1385,9 @@
|
|
|
|
|
# Default to "generic".
|
|
|
|
|
if test $enable_clocale_flag = auto; then
|
|
|
|
|
case ${target_os} in
|
|
|
|
@ -37,7 +35,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/acinclude.m4 gcc-4.1.0/libstdc++-v3/acincl
|
|
|
|
|
linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
|
|
|
|
|
AC_EGREP_CPP([_GLIBCXX_ok], [
|
|
|
|
|
#include <features.h>
|
|
|
|
|
@@ -1230,6 +1233,40 @@
|
|
|
|
|
@@ -1528,6 +1531,40 @@
|
|
|
|
|
CTIME_CC=config/locale/generic/time_members.cc
|
|
|
|
|
CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
|
|
|
|
|
;;
|
|
|
|
@ -78,9 +76,8 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/acinclude.m4 gcc-4.1.0/libstdc++-v3/acincl
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
# This is where the testsuite looks for locale catalogs, using the
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c++locale_internal.h 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c++locale_internal.h 2006-03-25 22:18:37.000000000 -0700
|
|
|
|
|
--- gcc/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
|
|
|
|
|
+++ gcc/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
|
|
|
|
|
@@ -0,0 +1,63 @@
|
|
|
|
|
+// Prototypes for GLIBC thread locale __-prefixed functions -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
@ -99,7 +96,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
@ -145,14 +142,12 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
|
|
+#endif // GLIBC 2.3 and later
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.cc 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c_locale.cc 2006-03-25 22:18:37.000000000 -0700
|
|
|
|
|
@@ -0,0 +1,152 @@
|
|
|
|
|
--- gcc/libstdc++-v3/config/locale/uclibc/c_locale.cc
|
|
|
|
|
+++ gcc/libstdc++-v3/config/locale/uclibc/c_locale.cc
|
|
|
|
|
@@ -0,0 +1,160 @@
|
|
|
|
|
+// Wrapper for underlying C-language localization -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
|
+// Copyright (C) 2001, 2002, 2003, 2004, 2005
|
|
|
|
|
+// Free Software Foundation, Inc.
|
|
|
|
|
+// Copyright (C) 2001, 2002, 2003 Free Software Foundation, Inc.
|
|
|
|
|
+//
|
|
|
|
|
+// This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
|
+// software; you can redistribute it and/or modify it under the
|
|
|
|
@ -167,7 +162,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.cc gcc-4.1.0
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
@ -212,6 +207,8 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.cc gcc-4.1.0
|
|
|
|
|
+ __convert_to_v(const char* __s, float& __v, ios_base::iostate& __err,
|
|
|
|
|
+ const __c_locale& __cloc)
|
|
|
|
|
+ {
|
|
|
|
|
+ if (!(__err & ios_base::failbit))
|
|
|
|
|
+ {
|
|
|
|
|
+ char* __sanity;
|
|
|
|
|
+ errno = 0;
|
|
|
|
|
+ float __f = __strtof_l(__s, &__sanity, __cloc);
|
|
|
|
@ -220,12 +217,15 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.cc gcc-4.1.0
|
|
|
|
|
+ else
|
|
|
|
|
+ __err |= ios_base::failbit;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ template<>
|
|
|
|
|
+ void
|
|
|
|
|
+ __convert_to_v(const char* __s, double& __v, ios_base::iostate& __err,
|
|
|
|
|
+ const __c_locale& __cloc)
|
|
|
|
|
+ {
|
|
|
|
|
+ if (!(__err & ios_base::failbit))
|
|
|
|
|
+ {
|
|
|
|
|
+ char* __sanity;
|
|
|
|
|
+ errno = 0;
|
|
|
|
|
+ double __d = __strtod_l(__s, &__sanity, __cloc);
|
|
|
|
@ -234,12 +234,15 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.cc gcc-4.1.0
|
|
|
|
|
+ else
|
|
|
|
|
+ __err |= ios_base::failbit;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ template<>
|
|
|
|
|
+ void
|
|
|
|
|
+ __convert_to_v(const char* __s, long double& __v, ios_base::iostate& __err,
|
|
|
|
|
+ const __c_locale& __cloc)
|
|
|
|
|
+ {
|
|
|
|
|
+ if (!(__err & ios_base::failbit))
|
|
|
|
|
+ {
|
|
|
|
|
+ char* __sanity;
|
|
|
|
|
+ errno = 0;
|
|
|
|
|
+ long double __ld = __strtold_l(__s, &__sanity, __cloc);
|
|
|
|
@ -248,6 +251,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.cc gcc-4.1.0
|
|
|
|
|
+ else
|
|
|
|
|
+ __err |= ios_base::failbit;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ void
|
|
|
|
|
+ locale::facet::_S_create_c_locale(__c_locale& __cloc, const char* __s,
|
|
|
|
@ -267,7 +271,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.cc gcc-4.1.0
|
|
|
|
|
+ void
|
|
|
|
|
+ locale::facet::_S_destroy_c_locale(__c_locale& __cloc)
|
|
|
|
|
+ {
|
|
|
|
|
+ if (__cloc && _S_get_c_locale() != __cloc)
|
|
|
|
|
+ if (_S_get_c_locale() != __cloc)
|
|
|
|
|
+ __freelocale(__cloc);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
@ -301,9 +305,8 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.cc gcc-4.1.0
|
|
|
|
|
+{
|
|
|
|
|
+ const char* const* const locale::_S_categories = __gnu_cxx::category_names;
|
|
|
|
|
+} // namespace std
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.h 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c_locale.h 2006-03-26 13:03:42.000000000 -0700
|
|
|
|
|
--- gcc/libstdc++-v3/config/locale/uclibc/c_locale.h
|
|
|
|
|
+++ gcc/libstdc++-v3/config/locale/uclibc/c_locale.h
|
|
|
|
|
@@ -0,0 +1,117 @@
|
|
|
|
|
+// Wrapper for underlying C-language localization -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
@ -322,7 +325,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.h gcc-4.1.0/
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
@ -394,7 +397,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.h gcc-4.1.0/
|
|
|
|
|
+ __convert_from_v(char* __out,
|
|
|
|
|
+ const int __size __attribute__ ((__unused__)),
|
|
|
|
|
+ const char* __fmt,
|
|
|
|
|
+#ifdef __UCLIBC_HAS_XLOCALE__
|
|
|
|
|
+#ifdef __UCLIBC_HAS_XCLOCALE__
|
|
|
|
|
+ _Tv __v, const __c_locale& __cloc, int __prec)
|
|
|
|
|
+ {
|
|
|
|
|
+ __c_locale __old = __gnu_cxx::__uselocale(__cloc);
|
|
|
|
@ -411,7 +414,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.h gcc-4.1.0/
|
|
|
|
|
+
|
|
|
|
|
+ const int __ret = std::snprintf(__out, __size, __fmt, __prec, __v);
|
|
|
|
|
+
|
|
|
|
|
+#ifdef __UCLIBC_HAS_XLOCALE__
|
|
|
|
|
+#ifdef __UCLIBC_HAS_XCLOCALE__
|
|
|
|
|
+ __gnu_cxx::__uselocale(__old);
|
|
|
|
|
+#elif defined __UCLIBC_HAS_LOCALE__
|
|
|
|
|
+ std::setlocale(LC_ALL, __sav);
|
|
|
|
@ -422,9 +425,8 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.h gcc-4.1.0/
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+#endif
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/codecvt_members.cc 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/codecvt_members.cc 2006-03-25 22:18:37.000000000 -0700
|
|
|
|
|
--- gcc/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
|
|
|
|
|
+++ gcc/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
|
|
|
|
|
@@ -0,0 +1,306 @@
|
|
|
|
|
+// std::codecvt implementation details, GNU version -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
@ -443,7 +445,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/codecvt_members.cc gc
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
@ -732,9 +734,8 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/codecvt_members.cc gc
|
|
|
|
|
+ }
|
|
|
|
|
+#endif
|
|
|
|
|
+}
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/collate_members.cc 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/collate_members.cc 2006-03-25 22:18:37.000000000 -0700
|
|
|
|
|
--- gcc/libstdc++-v3/config/locale/uclibc/collate_members.cc
|
|
|
|
|
+++ gcc/libstdc++-v3/config/locale/uclibc/collate_members.cc
|
|
|
|
|
@@ -0,0 +1,80 @@
|
|
|
|
|
+// std::collate implementation details, GNU version -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
@ -753,7 +754,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/collate_members.cc gc
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
@ -816,10 +817,9 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/collate_members.cc gc
|
|
|
|
|
+ { return __wcsxfrm_l(__to, __from, __n, _M_c_locale_collate); }
|
|
|
|
|
+#endif
|
|
|
|
|
+}
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/ctype_members.cc 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/ctype_members.cc 2006-03-25 22:18:37.000000000 -0700
|
|
|
|
|
@@ -0,0 +1,314 @@
|
|
|
|
|
--- gcc/libstdc++-v3/config/locale/uclibc/ctype_members.cc
|
|
|
|
|
+++ gcc/libstdc++-v3/config/locale/uclibc/ctype_members.cc
|
|
|
|
|
@@ -0,0 +1,300 @@
|
|
|
|
|
+// std::ctype implementation details, GNU version -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
|
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
|
|
|
@ -837,7 +837,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/ctype_members.cc gcc-
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
@ -967,31 +967,17 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/ctype_members.cc gcc-
|
|
|
|
|
+ ctype<wchar_t>::
|
|
|
|
|
+ do_is(mask __m, wchar_t __c) const
|
|
|
|
|
+ {
|
|
|
|
|
+ // The case of __m == ctype_base::space is particularly important,
|
|
|
|
|
+ // due to its use in many istream functions. Therefore we deal with
|
|
|
|
|
+ // it first, exploiting the knowledge that on GNU systems _M_bit[5]
|
|
|
|
|
+ // is the mask corresponding to ctype_base::space. NB: an encoding
|
|
|
|
|
+ // change would not affect correctness!
|
|
|
|
|
+ bool __ret = false;
|
|
|
|
|
+ if (__m == _M_bit[5])
|
|
|
|
|
+ __ret = __iswctype_l(__c, _M_wmask[5], _M_c_locale_ctype);
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ // Highest bitmask in ctype_base == 10, but extra in "C"
|
|
|
|
|
+ // library for blank.
|
|
|
|
|
+ bool __ret = false;
|
|
|
|
|
+ const size_t __bitmasksize = 11;
|
|
|
|
|
+ for (size_t __bitcur = 0; __bitcur <= __bitmasksize; ++__bitcur)
|
|
|
|
|
+ if (__m & _M_bit[__bitcur])
|
|
|
|
|
+ {
|
|
|
|
|
+ if (__iswctype_l(__c, _M_wmask[__bitcur], _M_c_locale_ctype))
|
|
|
|
|
+ if (__m & _M_bit[__bitcur]
|
|
|
|
|
+ && __iswctype_l(__c, _M_wmask[__bitcur], _M_c_locale_ctype))
|
|
|
|
|
+ {
|
|
|
|
|
+ __ret = true;
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ else if (__m == _M_bit[__bitcur])
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return __ret;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
@ -1134,9 +1120,8 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/ctype_members.cc gcc-
|
|
|
|
|
+ }
|
|
|
|
|
+#endif // _GLIBCXX_USE_WCHAR_T
|
|
|
|
|
+}
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.cc 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/messages_members.cc 2006-03-25 22:18:37.000000000 -0700
|
|
|
|
|
--- gcc/libstdc++-v3/config/locale/uclibc/messages_members.cc
|
|
|
|
|
+++ gcc/libstdc++-v3/config/locale/uclibc/messages_members.cc
|
|
|
|
|
@@ -0,0 +1,100 @@
|
|
|
|
|
+// std::messages implementation details, GNU version -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
@ -1155,7 +1140,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.cc g
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
@ -1238,13 +1223,12 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.cc g
|
|
|
|
|
+ }
|
|
|
|
|
+#endif
|
|
|
|
|
+}
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.h 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/messages_members.h 2006-03-25 22:18:37.000000000 -0700
|
|
|
|
|
@@ -0,0 +1,121 @@
|
|
|
|
|
--- gcc/libstdc++-v3/config/locale/uclibc/messages_members.h
|
|
|
|
|
+++ gcc/libstdc++-v3/config/locale/uclibc/messages_members.h
|
|
|
|
|
@@ -0,0 +1,118 @@
|
|
|
|
|
+// std::messages implementation details, GNU version -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
|
+// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
|
|
|
|
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
|
|
|
|
+//
|
|
|
|
|
+// This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
|
+// software; you can redistribute it and/or modify it under the
|
|
|
|
@ -1259,7 +1243,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.h gc
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
@ -1301,15 +1285,12 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.h gc
|
|
|
|
|
+ template<typename _CharT>
|
|
|
|
|
+ messages<_CharT>::messages(__c_locale __cloc, const char* __s,
|
|
|
|
|
+ size_t __refs)
|
|
|
|
|
+ : facet(__refs), _M_c_locale_messages(NULL), _M_name_messages(NULL)
|
|
|
|
|
+ : facet(__refs), _M_c_locale_messages(_S_clone_c_locale(__cloc)),
|
|
|
|
|
+ _M_name_messages(__s)
|
|
|
|
|
+ {
|
|
|
|
|
+ const size_t __len = std::strlen(__s) + 1;
|
|
|
|
|
+ char* __tmp = new char[__len];
|
|
|
|
|
+ std::memcpy(__tmp, __s, __len);
|
|
|
|
|
+ char* __tmp = new char[std::strlen(__s) + 1];
|
|
|
|
|
+ std::strcpy(__tmp, __s);
|
|
|
|
|
+ _M_name_messages = __tmp;
|
|
|
|
|
+
|
|
|
|
|
+ // Last to avoid leaking memory if new throws.
|
|
|
|
|
+ _M_c_locale_messages = _S_clone_c_locale(__cloc);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ template<typename _CharT>
|
|
|
|
@ -1363,9 +1344,8 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.h gc
|
|
|
|
|
+ this->_S_create_c_locale(this->_M_c_locale_messages, __s);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/monetary_members.cc 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/monetary_members.cc 2006-03-25 22:18:37.000000000 -0700
|
|
|
|
|
--- gcc/libstdc++-v3/config/locale/uclibc/monetary_members.cc
|
|
|
|
|
+++ gcc/libstdc++-v3/config/locale/uclibc/monetary_members.cc
|
|
|
|
|
@@ -0,0 +1,692 @@
|
|
|
|
|
+// std::moneypunct implementation details, GNU version -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
@ -1384,7 +1364,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/monetary_members.cc g
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
@ -1579,7 +1559,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/monetary_members.cc g
|
|
|
|
|
+ }
|
|
|
|
|
+ break;
|
|
|
|
|
+ default:
|
|
|
|
|
+ __ret = pattern();
|
|
|
|
|
+ ;
|
|
|
|
|
+ }
|
|
|
|
|
+ return __ret;
|
|
|
|
|
+ }
|
|
|
|
@ -1774,9 +1754,9 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/monetary_members.cc g
|
|
|
|
|
+# ifdef __UCLIBC_HAS_XLOCALE__
|
|
|
|
|
+ _M_data->_M_decimal_point = __cloc->decimal_point_wc;
|
|
|
|
|
+ _M_data->_M_thousands_sep = __cloc->thousands_sep_wc;
|
|
|
|
|
+//# else
|
|
|
|
|
+// _M_data->_M_decimal_point = __global_locale->decimal_point_wc;
|
|
|
|
|
+// _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc;
|
|
|
|
|
+# else
|
|
|
|
|
+ _M_data->_M_decimal_point = __global_locale->decimal_point_wc;
|
|
|
|
|
+ _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc;
|
|
|
|
|
+# endif
|
|
|
|
|
+#else
|
|
|
|
|
+ union { char *__s; wchar_t __w; } __u;
|
|
|
|
@ -1929,9 +1909,9 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/monetary_members.cc g
|
|
|
|
|
+# ifdef __UCLIBC_HAS_XLOCALE__
|
|
|
|
|
+ _M_data->_M_decimal_point = __cloc->decimal_point_wc;
|
|
|
|
|
+ _M_data->_M_thousands_sep = __cloc->thousands_sep_wc;
|
|
|
|
|
+//# else
|
|
|
|
|
+// _M_data->_M_decimal_point = __global_locale->decimal_point_wc;
|
|
|
|
|
+// _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc;
|
|
|
|
|
+# else
|
|
|
|
|
+ _M_data->_M_decimal_point = __global_locale->decimal_point_wc;
|
|
|
|
|
+ _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc;
|
|
|
|
|
+# endif
|
|
|
|
|
+#else
|
|
|
|
|
+ union { char *__s; wchar_t __w; } __u;
|
|
|
|
@ -2059,10 +2039,9 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/monetary_members.cc g
|
|
|
|
|
+ }
|
|
|
|
|
+#endif
|
|
|
|
|
+}
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/numeric_members.cc 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/numeric_members.cc 2006-03-25 22:18:37.000000000 -0700
|
|
|
|
|
@@ -0,0 +1,173 @@
|
|
|
|
|
--- gcc/libstdc++-v3/config/locale/uclibc/numeric_members.cc
|
|
|
|
|
+++ gcc/libstdc++-v3/config/locale/uclibc/numeric_members.cc
|
|
|
|
|
@@ -0,0 +1,160 @@
|
|
|
|
|
+// std::numpunct implementation details, GNU version -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
|
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
|
|
|
@ -2080,7 +2059,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/numeric_members.cc gc
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
@ -2195,25 +2174,12 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/numeric_members.cc gc
|
|
|
|
|
+ {
|
|
|
|
|
+ // Named locale.
|
|
|
|
|
+ // NB: In the GNU model wchar_t is always 32 bit wide.
|
|
|
|
|
+#ifdef __UCLIBC_MJN3_ONLY__
|
|
|
|
|
+#warning fix this
|
|
|
|
|
+#endif
|
|
|
|
|
+#ifdef __UCLIBC__
|
|
|
|
|
+# ifdef __UCLIBC_HAS_XLOCALE__
|
|
|
|
|
+ _M_data->_M_decimal_point = __cloc->decimal_point_wc;
|
|
|
|
|
+ _M_data->_M_thousands_sep = __cloc->thousands_sep_wc;
|
|
|
|
|
+//# else
|
|
|
|
|
+// _M_data->_M_decimal_point = __global_locale->decimal_point_wc;
|
|
|
|
|
+// _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc;
|
|
|
|
|
+# endif
|
|
|
|
|
+#else
|
|
|
|
|
+ union { char *__s; wchar_t __w; } __u;
|
|
|
|
|
+ __u.__s = __nl_langinfo_l(_NL_NUMERIC_DECIMAL_POINT_WC, __cloc);
|
|
|
|
|
+ _M_data->_M_decimal_point = __u.__w;
|
|
|
|
|
+
|
|
|
|
|
+ __u.__s = __nl_langinfo_l(_NL_NUMERIC_THOUSANDS_SEP_WC, __cloc);
|
|
|
|
|
+ _M_data->_M_thousands_sep = __u.__w;
|
|
|
|
|
+#endif
|
|
|
|
|
+
|
|
|
|
|
+ if (_M_data->_M_thousands_sep == L'\0')
|
|
|
|
|
+ _M_data->_M_grouping = "";
|
|
|
|
@ -2236,9 +2202,8 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/numeric_members.cc gc
|
|
|
|
|
+ { delete _M_data; }
|
|
|
|
|
+ #endif
|
|
|
|
|
+}
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.cc 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/time_members.cc 2006-03-25 22:18:37.000000000 -0700
|
|
|
|
|
--- gcc/libstdc++-v3/config/locale/uclibc/time_members.cc
|
|
|
|
|
+++ gcc/libstdc++-v3/config/locale/uclibc/time_members.cc
|
|
|
|
|
@@ -0,0 +1,406 @@
|
|
|
|
|
+// std::time_get, std::time_put implementation, GNU version -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
@ -2257,7 +2222,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.cc gcc-4
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
@ -2646,13 +2611,12 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.cc gcc-4
|
|
|
|
|
+ }
|
|
|
|
|
+#endif
|
|
|
|
|
+}
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.h 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/time_members.h 2005-10-21 02:34:06.000000000 -0600
|
|
|
|
|
@@ -0,0 +1,76 @@
|
|
|
|
|
--- gcc/libstdc++-v3/config/locale/uclibc/time_members.h
|
|
|
|
|
+++ gcc/libstdc++-v3/config/locale/uclibc/time_members.h
|
|
|
|
|
@@ -0,0 +1,68 @@
|
|
|
|
|
+// std::time_get, std::time_put implementation, GNU version -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
|
+// Copyright (C) 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
|
|
|
|
|
+// Copyright (C) 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
|
|
|
|
|
+//
|
|
|
|
|
+// This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
|
+// software; you can redistribute it and/or modify it under the
|
|
|
|
@ -2667,7 +2631,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.h gcc-4.
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
@ -2702,20 +2666,12 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.h gcc-4.
|
|
|
|
|
+ __timepunct<_CharT>::__timepunct(__c_locale __cloc, const char* __s,
|
|
|
|
|
+ size_t __refs)
|
|
|
|
|
+ : facet(__refs), _M_data(NULL), _M_c_locale_timepunct(NULL),
|
|
|
|
|
+ _M_name_timepunct(NULL)
|
|
|
|
|
+ _M_name_timepunct(__s)
|
|
|
|
|
+ {
|
|
|
|
|
+ const size_t __len = std::strlen(__s) + 1;
|
|
|
|
|
+ char* __tmp = new char[__len];
|
|
|
|
|
+ std::memcpy(__tmp, __s, __len);
|
|
|
|
|
+ char* __tmp = new char[std::strlen(__s) + 1];
|
|
|
|
|
+ std::strcpy(__tmp, __s);
|
|
|
|
|
+ _M_name_timepunct = __tmp;
|
|
|
|
|
+
|
|
|
|
|
+ try
|
|
|
|
|
+ { _M_initialize_timepunct(__cloc); }
|
|
|
|
|
+ catch(...)
|
|
|
|
|
+ {
|
|
|
|
|
+ delete [] _M_name_timepunct;
|
|
|
|
|
+ __throw_exception_again;
|
|
|
|
|
+ }
|
|
|
|
|
+ _M_initialize_timepunct(__cloc);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ template<typename _CharT>
|
|
|
|
@ -2726,307 +2682,9 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.h gcc-4.
|
|
|
|
|
+ delete _M_data;
|
|
|
|
|
+ _S_destroy_c_locale(_M_c_locale_timepunct);
|
|
|
|
|
+ }
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_base.h 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_base.h 2006-03-25 22:06:30.000000000 -0700
|
|
|
|
|
@@ -0,0 +1,64 @@
|
|
|
|
|
+// Locale support -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
|
+// Copyright (C) 1997, 1998, 1999, 2000, 2002, 2003, 2004
|
|
|
|
|
+// Free Software Foundation, Inc.
|
|
|
|
|
+//
|
|
|
|
|
+// This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
|
+// software; you can redistribute it and/or modify it under the
|
|
|
|
|
+// terms of the GNU General Public License as published by the
|
|
|
|
|
+// Free Software Foundation; either version 2, or (at your option)
|
|
|
|
|
+// any later version.
|
|
|
|
|
+
|
|
|
|
|
+// This library is distributed in the hope that it will be useful,
|
|
|
|
|
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
+// GNU General Public License for more details.
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
|
+// library without restriction. Specifically, if other files instantiate
|
|
|
|
|
+// templates or use macros or inline functions from this file, or you compile
|
|
|
|
|
+// this file and link it with other files to produce an executable, this
|
|
|
|
|
+// file does not by itself cause the resulting executable to be covered by
|
|
|
|
|
+// the GNU General Public License. This exception does not however
|
|
|
|
|
+// invalidate any other reasons why the executable file might be covered by
|
|
|
|
|
+// the GNU General Public License.
|
|
|
|
|
+
|
|
|
|
|
+//
|
|
|
|
|
+// ISO C++ 14882: 22.1 Locales
|
|
|
|
|
+//
|
|
|
|
|
+
|
|
|
|
|
+/** @file ctype_base.h
|
|
|
|
|
+ * This is an internal header file, included by other library headers.
|
|
|
|
|
+ * You should not attempt to use it directly.
|
|
|
|
|
+ */
|
|
|
|
|
+
|
|
|
|
|
+// Information as gleaned from /usr/include/ctype.h
|
|
|
|
|
+
|
|
|
|
|
+ /// @brief Base class for ctype.
|
|
|
|
|
+ struct ctype_base
|
|
|
|
|
+ {
|
|
|
|
|
+ // Note: In uClibc, the following two types depend on configuration.
|
|
|
|
|
+
|
|
|
|
|
+ // Non-standard typedefs.
|
|
|
|
|
+ typedef const __ctype_touplow_t* __to_type;
|
|
|
|
|
+
|
|
|
|
|
+ // NB: Offsets into ctype<char>::_M_table force a particular size
|
|
|
|
|
+ // on the mask type. Because of this, we don't use an enum.
|
|
|
|
|
+ typedef __ctype_mask_t mask;
|
|
|
|
|
+ static const mask upper = _ISupper;
|
|
|
|
|
+ static const mask lower = _ISlower;
|
|
|
|
|
+ static const mask alpha = _ISalpha;
|
|
|
|
|
+ static const mask digit = _ISdigit;
|
|
|
|
|
+ static const mask xdigit = _ISxdigit;
|
|
|
|
|
+ static const mask space = _ISspace;
|
|
|
|
|
+ static const mask print = _ISprint;
|
|
|
|
|
+ static const mask graph = _ISalpha | _ISdigit | _ISpunct;
|
|
|
|
|
+ static const mask cntrl = _IScntrl;
|
|
|
|
|
+ static const mask punct = _ISpunct;
|
|
|
|
|
+ static const mask alnum = _ISalpha | _ISdigit;
|
|
|
|
|
+ };
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_inline.h 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_inline.h 2006-03-25 22:06:30.000000000 -0700
|
|
|
|
|
@@ -0,0 +1,69 @@
|
|
|
|
|
+// Locale support -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
|
+// Copyright (C) 2000, 2002 Free Software Foundation, Inc.
|
|
|
|
|
+//
|
|
|
|
|
+// This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
|
+// software; you can redistribute it and/or modify it under the
|
|
|
|
|
+// terms of the GNU General Public License as published by the
|
|
|
|
|
+// Free Software Foundation; either version 2, or (at your option)
|
|
|
|
|
+// any later version.
|
|
|
|
|
+
|
|
|
|
|
+// This library is distributed in the hope that it will be useful,
|
|
|
|
|
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
+// GNU General Public License for more details.
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
|
+// library without restriction. Specifically, if other files instantiate
|
|
|
|
|
+// templates or use macros or inline functions from this file, or you compile
|
|
|
|
|
+// this file and link it with other files to produce an executable, this
|
|
|
|
|
+// file does not by itself cause the resulting executable to be covered by
|
|
|
|
|
+// the GNU General Public License. This exception does not however
|
|
|
|
|
+// invalidate any other reasons why the executable file might be covered by
|
|
|
|
|
+// the GNU General Public License.
|
|
|
|
|
+
|
|
|
|
|
+//
|
|
|
|
|
+// ISO C++ 14882: 22.1 Locales
|
|
|
|
|
+//
|
|
|
|
|
+
|
|
|
|
|
+// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*)
|
|
|
|
|
+// functions go in ctype.cc
|
|
|
|
|
+
|
|
|
|
|
+ bool
|
|
|
|
|
+ ctype<char>::
|
|
|
|
|
+ is(mask __m, char __c) const
|
|
|
|
|
+ { return _M_table[static_cast<unsigned char>(__c)] & __m; }
|
|
|
|
|
+
|
|
|
|
|
+ const char*
|
|
|
|
|
+ ctype<char>::
|
|
|
|
|
+ is(const char* __low, const char* __high, mask* __vec) const
|
|
|
|
|
+ {
|
|
|
|
|
+ while (__low < __high)
|
|
|
|
|
+ *__vec++ = _M_table[static_cast<unsigned char>(*__low++)];
|
|
|
|
|
+ return __high;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ const char*
|
|
|
|
|
+ ctype<char>::
|
|
|
|
|
+ scan_is(mask __m, const char* __low, const char* __high) const
|
|
|
|
|
+ {
|
|
|
|
|
+ while (__low < __high
|
|
|
|
|
+ && !(_M_table[static_cast<unsigned char>(*__low)] & __m))
|
|
|
|
|
+ ++__low;
|
|
|
|
|
+ return __low;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ const char*
|
|
|
|
|
+ ctype<char>::
|
|
|
|
|
+ scan_not(mask __m, const char* __low, const char* __high) const
|
|
|
|
|
+ {
|
|
|
|
|
+ while (__low < __high
|
|
|
|
|
+ && (_M_table[static_cast<unsigned char>(*__low)] & __m) != 0)
|
|
|
|
|
+ ++__low;
|
|
|
|
|
+ return __low;
|
|
|
|
|
+ }
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_noninline.h 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_noninline.h 2006-03-25 22:06:30.000000000 -0700
|
|
|
|
|
@@ -0,0 +1,92 @@
|
|
|
|
|
+// Locale support -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
|
+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2004
|
|
|
|
|
+// Free Software Foundation, Inc.
|
|
|
|
|
+//
|
|
|
|
|
+// This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
|
+// software; you can redistribute it and/or modify it under the
|
|
|
|
|
+// terms of the GNU General Public License as published by the
|
|
|
|
|
+// Free Software Foundation; either version 2, or (at your option)
|
|
|
|
|
+// any later version.
|
|
|
|
|
+
|
|
|
|
|
+// This library is distributed in the hope that it will be useful,
|
|
|
|
|
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
+// GNU General Public License for more details.
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
|
+// library without restriction. Specifically, if other files instantiate
|
|
|
|
|
+// templates or use macros or inline functions from this file, or you compile
|
|
|
|
|
+// this file and link it with other files to produce an executable, this
|
|
|
|
|
+// file does not by itself cause the resulting executable to be covered by
|
|
|
|
|
+// the GNU General Public License. This exception does not however
|
|
|
|
|
+// invalidate any other reasons why the executable file might be covered by
|
|
|
|
|
+// the GNU General Public License.
|
|
|
|
|
+
|
|
|
|
|
+//
|
|
|
|
|
+// ISO C++ 14882: 22.1 Locales
|
|
|
|
|
+//
|
|
|
|
|
+
|
|
|
|
|
+// Information as gleaned from /usr/include/ctype.h
|
|
|
|
|
+
|
|
|
|
|
+ const ctype_base::mask*
|
|
|
|
|
+ ctype<char>::classic_table() throw()
|
|
|
|
|
+ { return __C_ctype_b; }
|
|
|
|
|
+
|
|
|
|
|
+ ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
|
|
|
|
|
+ size_t __refs)
|
|
|
|
|
+ : facet(__refs), _M_c_locale_ctype(_S_get_c_locale()),
|
|
|
|
|
+ _M_del(__table != 0 && __del), _M_widen_ok(0), _M_narrow_ok(0)
|
|
|
|
|
+ {
|
|
|
|
|
+ _M_toupper = __C_ctype_toupper;
|
|
|
|
|
+ _M_tolower = __C_ctype_tolower;
|
|
|
|
|
+ _M_table = __table ? __table : __C_ctype_b;
|
|
|
|
|
+ memset(_M_widen, 0, sizeof(_M_widen));
|
|
|
|
|
+ memset(_M_narrow, 0, sizeof(_M_narrow));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ ctype<char>::ctype(const mask* __table, bool __del, size_t __refs)
|
|
|
|
|
+ : facet(__refs), _M_c_locale_ctype(_S_get_c_locale()),
|
|
|
|
|
+ _M_del(__table != 0 && __del), _M_widen_ok(0), _M_narrow_ok(0)
|
|
|
|
|
+ {
|
|
|
|
|
+ _M_toupper = __C_ctype_toupper;
|
|
|
|
|
+ _M_tolower = __C_ctype_tolower;
|
|
|
|
|
+ _M_table = __table ? __table : __C_ctype_b;
|
|
|
|
|
+ memset(_M_widen, 0, sizeof(_M_widen));
|
|
|
|
|
+ memset(_M_narrow, 0, sizeof(_M_narrow));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ char
|
|
|
|
|
+ ctype<char>::do_toupper(char __c) const
|
|
|
|
|
+ { return _M_toupper[static_cast<unsigned char>(__c)]; }
|
|
|
|
|
+
|
|
|
|
|
+ const char*
|
|
|
|
|
+ ctype<char>::do_toupper(char* __low, const char* __high) const
|
|
|
|
|
+ {
|
|
|
|
|
+ while (__low < __high)
|
|
|
|
|
+ {
|
|
|
|
|
+ *__low = _M_toupper[static_cast<unsigned char>(*__low)];
|
|
|
|
|
+ ++__low;
|
|
|
|
|
+ }
|
|
|
|
|
+ return __high;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ char
|
|
|
|
|
+ ctype<char>::do_tolower(char __c) const
|
|
|
|
|
+ { return _M_tolower[static_cast<unsigned char>(__c)]; }
|
|
|
|
|
+
|
|
|
|
|
+ const char*
|
|
|
|
|
+ ctype<char>::do_tolower(char* __low, const char* __high) const
|
|
|
|
|
+ {
|
|
|
|
|
+ while (__low < __high)
|
|
|
|
|
+ {
|
|
|
|
|
+ *__low = _M_tolower[static_cast<unsigned char>(*__low)];
|
|
|
|
|
+ ++__low;
|
|
|
|
|
+ }
|
|
|
|
|
+ return __high;
|
|
|
|
|
+ }
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/os_defines.h 1969-12-31 17:00:00.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/os_defines.h 2006-03-25 22:06:30.000000000 -0700
|
|
|
|
|
@@ -0,0 +1,44 @@
|
|
|
|
|
+// Specific definitions for GNU/Linux -*- C++ -*-
|
|
|
|
|
+
|
|
|
|
|
+// Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
|
|
|
|
|
+//
|
|
|
|
|
+// This file is part of the GNU ISO C++ Library. This library is free
|
|
|
|
|
+// software; you can redistribute it and/or modify it under the
|
|
|
|
|
+// terms of the GNU General Public License as published by the
|
|
|
|
|
+// Free Software Foundation; either version 2, or (at your option)
|
|
|
|
|
+// any later version.
|
|
|
|
|
+
|
|
|
|
|
+// This library is distributed in the hope that it will be useful,
|
|
|
|
|
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
+// GNU General Public License for more details.
|
|
|
|
|
+
|
|
|
|
|
+// You should have received a copy of the GNU General Public License along
|
|
|
|
|
+// with this library; see the file COPYING. If not, write to the Free
|
|
|
|
|
+// Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307,
|
|
|
|
|
+// USA.
|
|
|
|
|
+
|
|
|
|
|
+// As a special exception, you may use this file as part of a free software
|
|
|
|
|
+// library without restriction. Specifically, if other files instantiate
|
|
|
|
|
+// templates or use macros or inline functions from this file, or you compile
|
|
|
|
|
+// this file and link it with other files to produce an executable, this
|
|
|
|
|
+// file does not by itself cause the resulting executable to be covered by
|
|
|
|
|
+// the GNU General Public License. This exception does not however
|
|
|
|
|
+// invalidate any other reasons why the executable file might be covered by
|
|
|
|
|
+// the GNU General Public License.
|
|
|
|
|
+
|
|
|
|
|
+#ifndef _GLIBCXX_OS_DEFINES
|
|
|
|
|
+#define _GLIBCXX_OS_DEFINES 1
|
|
|
|
|
+
|
|
|
|
|
+// System-specific #define, typedefs, corrections, etc, go here. This
|
|
|
|
|
+// file will come before all others.
|
|
|
|
|
+
|
|
|
|
|
+// This keeps isanum, et al from being propagated as macros.
|
|
|
|
|
+#define __NO_CTYPE 1
|
|
|
|
|
+
|
|
|
|
|
+#include <features.h>
|
|
|
|
|
+
|
|
|
|
|
+// We must not see the optimized string functions GNU libc defines.
|
|
|
|
|
+#define __NO_STRING_INLINES
|
|
|
|
|
+
|
|
|
|
|
+#endif
|
|
|
|
|
diff -urN gcc-4.1.0-dist/libstdc++-v3/configure gcc-4.1.0/libstdc++-v3/configure
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/configure 2006-03-26 12:08:28.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/configure 2006-03-25 22:06:30.000000000 -0700
|
|
|
|
|
@@ -4005,6 +4005,11 @@
|
|
|
|
|
lt_cv_deplibs_check_method=pass_all
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
+linux-uclibc*)
|
|
|
|
|
+ lt_cv_deplibs_check_method=pass_all
|
|
|
|
|
+ lt_cv_file_magic_test_file=`echo /lib/libuClibc-*.so`
|
|
|
|
|
+ ;;
|
|
|
|
|
+
|
|
|
|
|
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 @@
|
|
|
|
|
--- gcc/libstdc++-v3/configure
|
|
|
|
|
+++ gcc/libstdc++-v3/configure
|
|
|
|
|
@@ -5764,7 +5764,7 @@
|
|
|
|
|
enableval="$enable_clocale"
|
|
|
|
|
|
|
|
|
|
case "$enableval" in
|
|
|
|
@ -3035,7 +2693,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/configure gcc-4.1.0/libstdc++-v3/configure
|
|
|
|
|
*) { { 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 @@
|
|
|
|
|
@@ -5789,6 +5789,9 @@
|
|
|
|
|
# Default to "generic".
|
|
|
|
|
if test $enable_clocale_flag = auto; then
|
|
|
|
|
case ${target_os} in
|
|
|
|
@ -3045,7 +2703,7 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/configure gcc-4.1.0/libstdc++-v3/configure
|
|
|
|
|
linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
|
|
|
|
|
cat >conftest.$ac_ext <<_ACEOF
|
|
|
|
|
/* confdefs.h. */
|
|
|
|
|
@@ -5995,6 +6003,76 @@
|
|
|
|
|
@@ -6019,6 +6022,76 @@
|
|
|
|
|
CTIME_CC=config/locale/generic/time_members.cc
|
|
|
|
|
CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
|
|
|
|
|
;;
|
|
|
|
@ -3122,137 +2780,8 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/configure gcc-4.1.0/libstdc++-v3/configure
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
# This is where the testsuite looks for locale catalogs, using the
|
|
|
|
|
diff -urN gcc-4.1.0-dist/libstdc++-v3/configure.host gcc-4.1.0/libstdc++-v3/configure.host
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/configure.host 2006-03-26 12:08:28.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/configure.host 2006-03-25 22:06:30.000000000 -0700
|
|
|
|
|
@@ -261,6 +261,12 @@
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
+# Override for uClibc since linux-uclibc gets mishandled above.
|
|
|
|
|
+case "${host_os}" in
|
|
|
|
|
+ *-uclibc*)
|
|
|
|
|
+ os_include_dir="os/uclibc"
|
|
|
|
|
+ ;;
|
|
|
|
|
+esac
|
|
|
|
|
|
|
|
|
|
# Set any OS-dependent and CPU-dependent bits.
|
|
|
|
|
# THIS TABLE IS SORTED. KEEP IT THAT WAY.
|
|
|
|
|
diff -urN gcc-4.1.0-dist/libstdc++-v3/crossconfig.m4 gcc-4.1.0/libstdc++-v3/crossconfig.m4
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/crossconfig.m4 2006-03-26 12:08:28.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/crossconfig.m4 2006-03-25 22:06:30.000000000 -0700
|
|
|
|
|
@@ -143,6 +143,99 @@
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
;;
|
|
|
|
|
+ *-uclibc*)
|
|
|
|
|
+# Temporary hack until we implement the float versions of the libm funcs
|
|
|
|
|
+ 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 \
|
|
|
|
|
+ fp.h float.h endian.h inttypes.h locale.h float.h stdint.h])
|
|
|
|
|
+ SECTION_FLAGS='-ffunction-sections -fdata-sections'
|
|
|
|
|
+ AC_SUBST(SECTION_FLAGS)
|
|
|
|
|
+ GLIBCXX_CHECK_LINKER_FEATURES
|
|
|
|
|
+ GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
|
|
|
|
|
+ GLIBCXX_CHECK_WCHAR_T_SUPPORT
|
|
|
|
|
+
|
|
|
|
|
+ # For LFS.
|
|
|
|
|
+ AC_DEFINE(HAVE_INT64_T)
|
|
|
|
|
+ case "$target" in
|
|
|
|
|
+ *-uclinux*)
|
|
|
|
|
+ # Don't enable LFS with uClinux
|
|
|
|
|
+ ;;
|
|
|
|
|
+ *)
|
|
|
|
|
+ AC_DEFINE(_GLIBCXX_USE_LFS)
|
|
|
|
|
+ esac
|
|
|
|
|
+
|
|
|
|
|
+ # For showmanyc_helper().
|
|
|
|
|
+ AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)
|
|
|
|
|
+ GLIBCXX_CHECK_POLL
|
|
|
|
|
+ GLIBCXX_CHECK_S_ISREG_OR_S_IFREG
|
|
|
|
|
+
|
|
|
|
|
+ # For xsputn_2().
|
|
|
|
|
+ AC_CHECK_HEADERS(sys/uio.h)
|
|
|
|
|
+ GLIBCXX_CHECK_WRITEV
|
|
|
|
|
+
|
|
|
|
|
+# AC_DEFINE(HAVE_ACOSF)
|
|
|
|
|
+# AC_DEFINE(HAVE_ASINF)
|
|
|
|
|
+# AC_DEFINE(HAVE_ATANF)
|
|
|
|
|
+# AC_DEFINE(HAVE_ATAN2F)
|
|
|
|
|
+ AC_DEFINE(HAVE_CEILF)
|
|
|
|
|
+ AC_DEFINE(HAVE_COPYSIGN)
|
|
|
|
|
+# AC_DEFINE(HAVE_COPYSIGNF)
|
|
|
|
|
+# AC_DEFINE(HAVE_COSF)
|
|
|
|
|
+# AC_DEFINE(HAVE_COSHF)
|
|
|
|
|
+# AC_DEFINE(HAVE_EXPF)
|
|
|
|
|
+# AC_DEFINE(HAVE_FABSF)
|
|
|
|
|
+ AC_DEFINE(HAVE_FINITE)
|
|
|
|
|
+ AC_DEFINE(HAVE_FINITEF)
|
|
|
|
|
+ AC_DEFINE(HAVE_FLOORF)
|
|
|
|
|
+# AC_DEFINE(HAVE_FMODF)
|
|
|
|
|
+# AC_DEFINE(HAVE_FREXPF)
|
|
|
|
|
+ AC_DEFINE(HAVE_HYPOT)
|
|
|
|
|
+# AC_DEFINE(HAVE_HYPOTF)
|
|
|
|
|
+ AC_DEFINE(HAVE_ISINF)
|
|
|
|
|
+ AC_DEFINE(HAVE_ISINFF)
|
|
|
|
|
+ AC_DEFINE(HAVE_ISNAN)
|
|
|
|
|
+ AC_DEFINE(HAVE_ISNANF)
|
|
|
|
|
+# AC_DEFINE(HAVE_LOGF)
|
|
|
|
|
+# AC_DEFINE(HAVE_LOG10F)
|
|
|
|
|
+# AC_DEFINE(HAVE_MODFF)
|
|
|
|
|
+# AC_DEFINE(HAVE_SINF)
|
|
|
|
|
+# AC_DEFINE(HAVE_SINHF)
|
|
|
|
|
+# AC_DEFINE(HAVE_SINCOS)
|
|
|
|
|
+# AC_DEFINE(HAVE_SINCOSF)
|
|
|
|
|
+ AC_DEFINE(HAVE_SQRTF)
|
|
|
|
|
+# AC_DEFINE(HAVE_TANF)
|
|
|
|
|
+# AC_DEFINE(HAVE_TANHF)
|
|
|
|
|
+ if test x"long_double_math_on_this_cpu" = x"yes"; then
|
|
|
|
|
+ AC_MSG_ERROR([long_double_math_on_this_cpu is yes!])
|
|
|
|
|
+# AC_DEFINE(HAVE_ACOSL)
|
|
|
|
|
+# AC_DEFINE(HAVE_ASINL)
|
|
|
|
|
+# AC_DEFINE(HAVE_ATANL)
|
|
|
|
|
+# AC_DEFINE(HAVE_ATAN2L)
|
|
|
|
|
+# AC_DEFINE(HAVE_CEILL)
|
|
|
|
|
+# AC_DEFINE(HAVE_COPYSIGNL)
|
|
|
|
|
+# AC_DEFINE(HAVE_COSL)
|
|
|
|
|
+# AC_DEFINE(HAVE_COSHL)
|
|
|
|
|
+# AC_DEFINE(HAVE_EXPL)
|
|
|
|
|
+# AC_DEFINE(HAVE_FABSL)
|
|
|
|
|
+# AC_DEFINE(HAVE_FINITEL)
|
|
|
|
|
+# AC_DEFINE(HAVE_FLOORL)
|
|
|
|
|
+# AC_DEFINE(HAVE_FMODL)
|
|
|
|
|
+# AC_DEFINE(HAVE_FREXPL)
|
|
|
|
|
+# AC_DEFINE(HAVE_HYPOTL)
|
|
|
|
|
+# AC_DEFINE(HAVE_ISINFL)
|
|
|
|
|
+# AC_DEFINE(HAVE_ISNANL)
|
|
|
|
|
+# AC_DEFINE(HAVE_LOGL)
|
|
|
|
|
+# AC_DEFINE(HAVE_LOG10L)
|
|
|
|
|
+# AC_DEFINE(HAVE_MODFL)
|
|
|
|
|
+# AC_DEFINE(HAVE_POWL)
|
|
|
|
|
+# AC_DEFINE(HAVE_SINL)
|
|
|
|
|
+# AC_DEFINE(HAVE_SINHL)
|
|
|
|
|
+# AC_DEFINE(HAVE_SINCOSL)
|
|
|
|
|
+# AC_DEFINE(HAVE_SQRTL)
|
|
|
|
|
+# AC_DEFINE(HAVE_TANL)
|
|
|
|
|
+# AC_DEFINE(HAVE_TANHL)
|
|
|
|
|
+ fi
|
|
|
|
|
+ ;;
|
|
|
|
|
*-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 @@
|
|
|
|
|
AC_DEFINE(HAVE_INT64_T)
|
|
|
|
|
case "$target" in
|
|
|
|
|
*-uclinux*)
|
|
|
|
|
- # Don't enable LFS with uClibc
|
|
|
|
|
+ # Don't enable LFS with uClinux
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
AC_DEFINE(_GLIBCXX_USE_LFS)
|
|
|
|
|
diff -urN gcc-4.1.0-dist/libstdc++-v3/include/c_compatibility/wchar.h gcc-4.1.0/libstdc++-v3/include/c_compatibility/wchar.h
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/include/c_compatibility/wchar.h 2006-03-26 12:08:28.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/include/c_compatibility/wchar.h 2006-03-25 22:06:30.000000000 -0700
|
|
|
|
|
--- gcc/libstdc++-v3/include/c_compatibility/wchar.h
|
|
|
|
|
+++ gcc/libstdc++-v3/include/c_compatibility/wchar.h
|
|
|
|
|
@@ -101,7 +101,9 @@
|
|
|
|
|
using std::wmemcpy;
|
|
|
|
|
using std::wmemmove;
|
|
|
|
@ -3263,10 +2792,9 @@ diff -urN gcc-4.1.0-dist/libstdc++-v3/include/c_compatibility/wchar.h gcc-4.1.0/
|
|
|
|
|
|
|
|
|
|
#if _GLIBCXX_USE_C99
|
|
|
|
|
using std::wcstold;
|
|
|
|
|
diff -urN 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
|
|
|
|
|
--- gcc-4.1.0-dist/libstdc++-v3/include/c_std/std_cwchar.h 2006-03-26 12:08:28.000000000 -0700
|
|
|
|
|
+++ gcc-4.1.0/libstdc++-v3/include/c_std/std_cwchar.h 2006-03-25 22:06:30.000000000 -0700
|
|
|
|
|
@@ -180,7 +180,9 @@
|
|
|
|
|
--- gcc/libstdc++-v3/include/c_std/std_cwchar.h
|
|
|
|
|
+++ gcc/libstdc++-v3/include/c_std/std_cwchar.h
|
|
|
|
|
@@ -182,7 +182,9 @@
|
|
|
|
|
using ::wcscoll;
|
|
|
|
|
using ::wcscpy;
|
|
|
|
|
using ::wcscspn;
|
|
|
|
|