patches/gcc/4.1.2/200-uclibc-locale.patch
changeset 13 068dce39f687
parent 1 eeea35fbf182
     1.1 --- a/patches/gcc/4.1.2/200-uclibc-locale.patch	Sat Feb 24 11:00:05 2007 +0000
     1.2 +++ b/patches/gcc/4.1.2/200-uclibc-locale.patch	Sun Mar 04 22:56:04 2007 +0000
     1.3 @@ -1,6 +1,6 @@
     1.4 ---- gcc-4.1.0-dist/libstdc++-v3/acinclude.m4
     1.5 -+++ gcc-4.1.0/libstdc++-v3/acinclude.m4
     1.6 -@@ -1071,7 +1071,7 @@
     1.7 +--- gcc-4.1.2.orig/libstdc++-v3/acinclude.m4	2007-01-29 11:51:01.000000000 +0100
     1.8 ++++ gcc-4.1.2/libstdc++-v3/acinclude.m4	2007-03-04 23:31:57.000000000 +0100
     1.9 +@@ -1003,7 +1003,7 @@
    1.10     AC_MSG_CHECKING([for C locale to use])
    1.11     GLIBCXX_ENABLE(clocale,auto,[@<:@=MODEL@:>@],
    1.12       [use MODEL for target locale package],
    1.13 @@ -9,7 +9,7 @@
    1.14     
    1.15     # If they didn't use this option switch, or if they specified --enable
    1.16     # with no specific model, we'll have to look for one.  If they
    1.17 -@@ -1087,6 +1087,9 @@
    1.18 +@@ -1019,6 +1019,9 @@
    1.19     # Default to "generic".
    1.20     if test $enable_clocale_flag = auto; then
    1.21       case ${target_os} in
    1.22 @@ -19,7 +19,7 @@
    1.23         linux* | gnu* | kfreebsd*-gnu | knetbsd*-gnu)
    1.24           AC_EGREP_CPP([_GLIBCXX_ok], [
    1.25           #include <features.h>
    1.26 -@@ -1230,6 +1233,40 @@
    1.27 +@@ -1162,6 +1165,40 @@
    1.28         CTIME_CC=config/locale/generic/time_members.cc
    1.29         CLOCALE_INTERNAL_H=config/locale/generic/c++locale_internal.h
    1.30         ;;
    1.31 @@ -60,8 +60,8 @@
    1.32     esac
    1.33   
    1.34     # This is where the testsuite looks for locale catalogs, using the
    1.35 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
    1.36 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c++locale_internal.h
    1.37 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/c++locale_internal.h	1970-01-01 01:00:00.000000000 +0100
    1.38 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c++locale_internal.h	2007-03-04 23:31:57.000000000 +0100
    1.39  @@ -0,0 +1,63 @@
    1.40  +// Prototypes for GLIBC thread locale __-prefixed functions -*- C++ -*-
    1.41  +
    1.42 @@ -126,8 +126,8 @@
    1.43  +#endif 
    1.44  +
    1.45  +#endif // GLIBC 2.3 and later
    1.46 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.cc
    1.47 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c_locale.cc
    1.48 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/c_locale.cc	1970-01-01 01:00:00.000000000 +0100
    1.49 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c_locale.cc	2007-03-04 23:31:57.000000000 +0100
    1.50  @@ -0,0 +1,152 @@
    1.51  +// Wrapper for underlying C-language localization -*- C++ -*-
    1.52  +
    1.53 @@ -281,8 +281,8 @@
    1.54  +{
    1.55  +  const char* const* const locale::_S_categories = __gnu_cxx::category_names;
    1.56  +}  // namespace std
    1.57 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/c_locale.h
    1.58 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/c_locale.h
    1.59 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/c_locale.h	1970-01-01 01:00:00.000000000 +0100
    1.60 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/c_locale.h	2007-03-04 23:31:57.000000000 +0100
    1.61  @@ -0,0 +1,117 @@
    1.62  +// Wrapper for underlying C-language localization -*- C++ -*-
    1.63  +
    1.64 @@ -401,8 +401,8 @@
    1.65  +}
    1.66  +
    1.67  +#endif
    1.68 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
    1.69 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/codecvt_members.cc
    1.70 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/codecvt_members.cc	1970-01-01 01:00:00.000000000 +0100
    1.71 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/codecvt_members.cc	2007-03-04 23:31:57.000000000 +0100
    1.72  @@ -0,0 +1,306 @@
    1.73  +// std::codecvt implementation details, GNU version -*- C++ -*-
    1.74  +
    1.75 @@ -710,8 +710,8 @@
    1.76  +  }
    1.77  +#endif
    1.78  +}
    1.79 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/collate_members.cc
    1.80 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/collate_members.cc
    1.81 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/collate_members.cc	1970-01-01 01:00:00.000000000 +0100
    1.82 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/collate_members.cc	2007-03-04 23:31:57.000000000 +0100
    1.83  @@ -0,0 +1,80 @@
    1.84  +// std::collate implementation details, GNU version -*- C++ -*-
    1.85  +
    1.86 @@ -793,8 +793,8 @@
    1.87  +    { return __wcsxfrm_l(__to, __from, __n, _M_c_locale_collate); }
    1.88  +#endif
    1.89  +}
    1.90 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/ctype_members.cc
    1.91 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/ctype_members.cc
    1.92 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/ctype_members.cc	1970-01-01 01:00:00.000000000 +0100
    1.93 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/ctype_members.cc	2007-03-04 23:31:57.000000000 +0100
    1.94  @@ -0,0 +1,314 @@
    1.95  +// std::ctype implementation details, GNU version -*- C++ -*-
    1.96  +
    1.97 @@ -1110,8 +1110,8 @@
    1.98  +  }
    1.99  +#endif //  _GLIBCXX_USE_WCHAR_T
   1.100  +}
   1.101 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.cc
   1.102 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/messages_members.cc
   1.103 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/messages_members.cc	1970-01-01 01:00:00.000000000 +0100
   1.104 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/messages_members.cc	2007-03-04 23:31:57.000000000 +0100
   1.105  @@ -0,0 +1,100 @@
   1.106  +// std::messages implementation details, GNU version -*- C++ -*-
   1.107  +
   1.108 @@ -1213,8 +1213,8 @@
   1.109  +    }
   1.110  +#endif
   1.111  +}
   1.112 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/messages_members.h
   1.113 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/messages_members.h
   1.114 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/messages_members.h	1970-01-01 01:00:00.000000000 +0100
   1.115 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/messages_members.h	2007-03-04 23:31:57.000000000 +0100
   1.116  @@ -0,0 +1,121 @@
   1.117  +// std::messages implementation details, GNU version -*- C++ -*-
   1.118  +
   1.119 @@ -1337,8 +1337,8 @@
   1.120  +	   this->_S_create_c_locale(this->_M_c_locale_messages, __s); 
   1.121  +	 }
   1.122  +     }
   1.123 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/monetary_members.cc
   1.124 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/monetary_members.cc
   1.125 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/monetary_members.cc	1970-01-01 01:00:00.000000000 +0100
   1.126 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/monetary_members.cc	2007-03-04 23:31:57.000000000 +0100
   1.127  @@ -0,0 +1,692 @@
   1.128  +// std::moneypunct implementation details, GNU version -*- C++ -*-
   1.129  +
   1.130 @@ -2032,8 +2032,8 @@
   1.131  +    }
   1.132  +#endif
   1.133  +}
   1.134 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/numeric_members.cc
   1.135 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/numeric_members.cc
   1.136 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/numeric_members.cc	1970-01-01 01:00:00.000000000 +0100
   1.137 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/numeric_members.cc	2007-03-04 23:31:57.000000000 +0100
   1.138  @@ -0,0 +1,173 @@
   1.139  +// std::numpunct implementation details, GNU version -*- C++ -*-
   1.140  +
   1.141 @@ -2208,8 +2208,8 @@
   1.142  +    { delete _M_data; }
   1.143  + #endif
   1.144  +}
   1.145 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.cc
   1.146 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/time_members.cc
   1.147 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/time_members.cc	1970-01-01 01:00:00.000000000 +0100
   1.148 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/time_members.cc	2007-03-04 23:31:57.000000000 +0100
   1.149  @@ -0,0 +1,406 @@
   1.150  +// std::time_get, std::time_put implementation, GNU version -*- C++ -*-
   1.151  +
   1.152 @@ -2617,8 +2617,8 @@
   1.153  +    }
   1.154  +#endif
   1.155  +}
   1.156 ---- gcc-4.1.0-dist/libstdc++-v3/config/locale/uclibc/time_members.h
   1.157 -+++ gcc-4.1.0/libstdc++-v3/config/locale/uclibc/time_members.h
   1.158 +--- gcc-4.1.2.orig/libstdc++-v3/config/locale/uclibc/time_members.h	1970-01-01 01:00:00.000000000 +0100
   1.159 ++++ gcc-4.1.2/libstdc++-v3/config/locale/uclibc/time_members.h	2007-03-04 23:31:57.000000000 +0100
   1.160  @@ -0,0 +1,76 @@
   1.161  +// std::time_get, std::time_put implementation, GNU version -*- C++ -*-
   1.162  +
   1.163 @@ -2696,8 +2696,8 @@
   1.164  +      delete _M_data; 
   1.165  +      _S_destroy_c_locale(_M_c_locale_timepunct); 
   1.166  +    }
   1.167 ---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_base.h
   1.168 -+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_base.h
   1.169 +--- gcc-4.1.2.orig/libstdc++-v3/config/os/uclibc/ctype_base.h	1970-01-01 01:00:00.000000000 +0100
   1.170 ++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_base.h	2007-03-04 23:31:57.000000000 +0100
   1.171  @@ -0,0 +1,64 @@
   1.172  +// Locale support -*- C++ -*-
   1.173  +
   1.174 @@ -2763,8 +2763,8 @@
   1.175  +    static const mask punct 	= _ISpunct;
   1.176  +    static const mask alnum 	= _ISalpha | _ISdigit;
   1.177  +  };
   1.178 ---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_inline.h
   1.179 -+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_inline.h
   1.180 +--- gcc-4.1.2.orig/libstdc++-v3/config/os/uclibc/ctype_inline.h	1970-01-01 01:00:00.000000000 +0100
   1.181 ++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_inline.h	2007-03-04 23:31:57.000000000 +0100
   1.182  @@ -0,0 +1,69 @@
   1.183  +// Locale support -*- C++ -*-
   1.184  +
   1.185 @@ -2835,8 +2835,8 @@
   1.186  +      ++__low;
   1.187  +    return __low;
   1.188  +  }
   1.189 ---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/ctype_noninline.h
   1.190 -+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/ctype_noninline.h
   1.191 +--- gcc-4.1.2.orig/libstdc++-v3/config/os/uclibc/ctype_noninline.h	1970-01-01 01:00:00.000000000 +0100
   1.192 ++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/ctype_noninline.h	2007-03-04 23:31:57.000000000 +0100
   1.193  @@ -0,0 +1,92 @@
   1.194  +// Locale support -*- C++ -*-
   1.195  +
   1.196 @@ -2930,8 +2930,8 @@
   1.197  +      }
   1.198  +    return __high;
   1.199  +  }
   1.200 ---- gcc-4.1.0-dist/libstdc++-v3/config/os/uclibc/os_defines.h
   1.201 -+++ gcc-4.1.0/libstdc++-v3/config/os/uclibc/os_defines.h
   1.202 +--- gcc-4.1.2.orig/libstdc++-v3/config/os/uclibc/os_defines.h	1970-01-01 01:00:00.000000000 +0100
   1.203 ++++ gcc-4.1.2/libstdc++-v3/config/os/uclibc/os_defines.h	2007-03-04 23:31:57.000000000 +0100
   1.204  @@ -0,0 +1,44 @@
   1.205  +// Specific definitions for GNU/Linux  -*- C++ -*-
   1.206  +
   1.207 @@ -2977,8 +2977,8 @@
   1.208  +#define __NO_STRING_INLINES
   1.209  +
   1.210  +#endif
   1.211 ---- gcc-4.1.0-dist/libstdc++-v3/configure
   1.212 -+++ gcc-4.1.0/libstdc++-v3/configure
   1.213 +--- gcc-4.1.2.orig/libstdc++-v3/configure	2007-01-29 11:51:01.000000000 +0100
   1.214 ++++ gcc-4.1.2/libstdc++-v3/configure	2007-03-04 23:31:57.000000000 +0100
   1.215  @@ -4005,6 +4005,11 @@
   1.216     lt_cv_deplibs_check_method=pass_all
   1.217     ;;
   1.218 @@ -3087,9 +3087,9 @@
   1.219     esac
   1.220   
   1.221     # This is where the testsuite looks for locale catalogs, using the
   1.222 ---- gcc-4.1.0-dist/libstdc++-v3/configure.host
   1.223 -+++ gcc-4.1.0/libstdc++-v3/configure.host
   1.224 -@@ -261,6 +261,12 @@
   1.225 +--- gcc-4.1.2.orig/libstdc++-v3/configure.host	2007-01-28 21:12:40.000000000 +0100
   1.226 ++++ gcc-4.1.2/libstdc++-v3/configure.host	2007-03-04 23:31:57.000000000 +0100
   1.227 +@@ -270,6 +270,12 @@
   1.228       ;;
   1.229   esac
   1.230   
   1.231 @@ -3102,8 +3102,8 @@
   1.232   
   1.233   # Set any OS-dependent and CPU-dependent bits.
   1.234   # THIS TABLE IS SORTED.  KEEP IT THAT WAY.
   1.235 ---- gcc-4.1.0-dist/libstdc++-v3/crossconfig.m4
   1.236 -+++ gcc-4.1.0/libstdc++-v3/crossconfig.m4
   1.237 +--- gcc-4.1.2.orig/libstdc++-v3/crossconfig.m4	2006-12-12 15:18:36.000000000 +0100
   1.238 ++++ gcc-4.1.2/libstdc++-v3/crossconfig.m4	2007-03-04 23:31:57.000000000 +0100
   1.239  @@ -143,6 +143,99 @@
   1.240   	;;
   1.241       esac
   1.242 @@ -3213,8 +3213,8 @@
   1.243           ;;
   1.244         *)
   1.245           AC_DEFINE(_GLIBCXX_USE_LFS)
   1.246 ---- gcc-4.1.0-dist/libstdc++-v3/include/c_compatibility/wchar.h
   1.247 -+++ gcc-4.1.0/libstdc++-v3/include/c_compatibility/wchar.h
   1.248 +--- gcc-4.1.2.orig/libstdc++-v3/include/c_compatibility/wchar.h	2005-08-17 04:28:44.000000000 +0200
   1.249 ++++ gcc-4.1.2/libstdc++-v3/include/c_compatibility/wchar.h	2007-03-04 23:31:57.000000000 +0100
   1.250  @@ -101,7 +101,9 @@
   1.251   using std::wmemcpy;
   1.252   using std::wmemmove;
   1.253 @@ -3225,8 +3225,8 @@
   1.254   
   1.255   #if _GLIBCXX_USE_C99
   1.256   using std::wcstold;
   1.257 ---- gcc-4.1.0-dist/libstdc++-v3/include/c_std/std_cwchar.h
   1.258 -+++ gcc-4.1.0/libstdc++-v3/include/c_std/std_cwchar.h
   1.259 +--- gcc-4.1.2.orig/libstdc++-v3/include/c_std/std_cwchar.h	2005-10-30 23:21:50.000000000 +0100
   1.260 ++++ gcc-4.1.2/libstdc++-v3/include/c_std/std_cwchar.h	2007-03-04 23:31:57.000000000 +0100
   1.261  @@ -180,7 +180,9 @@
   1.262     using ::wcscoll;
   1.263     using ::wcscpy;