patches/gcc/4.2.0/140-uclibc-locale-wchar_fix.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Aug 07 14:05:47 2008 +0000 (2008-08-07)
changeset 766 717efd8b78b4
parent 111 2e16b9fc302d
permissions -rw-r--r--
Update all samples to the latest set of options.
Update some samples to use newer features.
Add patches for the uClibc-20080801 snapshot to be able to build with gcc-4.3.
Add a patch against glibc-2.7 to allow building PPC with latest kernel headers.
Add a patch to gcc to use an alternate unwinding when built against uClibc (after a private explanation/request by Daniel Egger <daniel@eggers-club.de>)

/trunk/patches/glibc/2.7/230-powerpc-private_futex.patch | 15 15 0 0 +
/trunk/patches/uClibc/20080801/300-fix-asm.patch | 175 175 0 0 +++++++++
/trunk/patches/uClibc/20080801/100-ifaddrs.patch | 190 190 0 0 +++++++++
/trunk/patches/uClibc/20080801/200-mips-typeof.patch | 112 112 0 0 ++++++
/trunk/patches/gcc/4.3.1/330-unwind-for-uClibc.patch | 25 25 0 0 +
/trunk/samples/x86_64-unknown-linux-gnu/crosstool.config | 17 10 7 0 +
/trunk/samples/armeb-unknown-linux-uclibc/crosstool.config | 7 5 2 0 +
/trunk/samples/arm-unknown-linux-gnueabi/crosstool.config | 7 5 2 0 +
/trunk/samples/ia64-unknown-linux-gnu/crosstool.config | 14 11 3 0 +
/trunk/samples/x86_64-unknown-linux-uclibc/uClibc-20080801.config | 232 232 0 0 ++++++++++++
/trunk/samples/x86_64-unknown-linux-uclibc/crosstool.config | 34 21 13 0 +-
/trunk/samples/i686-nptl-linux-gnu/crosstool.config | 10 7 3 0 +
/trunk/samples/powerpc-unknown-linux-gnu/crosstool.config | 12 9 3 0 +
/trunk/samples/mips-unknown-linux-uclibc/uClibc-20080801.config | 249 249 0 0 ++++++++++++
/trunk/samples/mips-unknown-linux-uclibc/crosstool.config | 38 23 15 0 +-
/trunk/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 14 10 4 0 +
/trunk/samples/armeb-unknown-linux-gnu/crosstool.config | 7 5 2 0 +
/trunk/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 12 9 3 0 +
/trunk/samples/arm-unknown-linux-uclibc/crosstool.config | 7 5 2 0 +
/trunk/samples/i586-geode-linux-uclibc/uClibc-20080801.config | 261 261 0 0 +++++++++++++
/trunk/samples/i586-geode-linux-uclibc/crosstool.config | 32 20 12 0 ++
/trunk/samples/powerpc-unknown-linux-uclibc/crosstool.config | 12 9 3 0 +
/trunk/samples/mipsel-unknown-linux-gnu/crosstool.config | 7 5 2 0 +
/trunk/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 7 5 2 0 +
/trunk/samples/alphaev56-unknown-linux-gnu/crosstool.config | 16 10 6 0 +
25 files changed, 1428 insertions(+), 84 deletions(-)
yann@111
     1
--- gcc/libstdc++-v3/config/locale/uclibc/monetary_members.cc.uclibc200_wchar~	2006-03-10 15:32:37 +0100
yann@111
     2
+++ gcc/libstdc++-v3/config/locale/uclibc/monetary_members.cc	2006-03-10 15:37:27 +0100
yann@111
     3
@@ -401,7 +401,7 @@
yann@111
     4
 # ifdef __UCLIBC_HAS_XLOCALE__
yann@111
     5
 	  _M_data->_M_decimal_point = __cloc->decimal_point_wc;
yann@111
     6
 	  _M_data->_M_thousands_sep = __cloc->thousands_sep_wc;
yann@111
     7
-# else
yann@111
     8
+# elif defined __UCLIBC_HAS_LOCALE__
yann@111
     9
 	  _M_data->_M_decimal_point = __global_locale->decimal_point_wc;
yann@111
    10
 	  _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc;
yann@111
    11
 # endif
yann@111
    12
@@ -556,7 +556,7 @@
yann@111
    13
 # ifdef __UCLIBC_HAS_XLOCALE__
yann@111
    14
 	  _M_data->_M_decimal_point = __cloc->decimal_point_wc;
yann@111
    15
 	  _M_data->_M_thousands_sep = __cloc->thousands_sep_wc;
yann@111
    16
-# else
yann@111
    17
+# elif defined __UCLIBC_HAS_LOCALE__
yann@111
    18
 	  _M_data->_M_decimal_point = __global_locale->decimal_point_wc;
yann@111
    19
 	  _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc;
yann@111
    20
 # endif
yann@111
    21
--- gcc/libstdc++-v3/config/locale/uclibc/numeric_members.cc.uclibc200_wchar~	2006-03-10 15:32:37 +0100
yann@111
    22
+++ gcc/libstdc++-v3/config/locale/uclibc/numeric_members.cc	2006-03-10 15:37:27 +0100
yann@111
    23
@@ -127,12 +127,25 @@
yann@111
    24
 	{
yann@111
    25
 	  // Named locale.
yann@111
    26
 	  // NB: In the GNU model wchar_t is always 32 bit wide.
yann@111
    27
+#ifdef __UCLIBC_MJN3_ONLY__
yann@111
    28
+#warning fix this... should be numeric
yann@111
    29
+#endif
yann@111
    30
+#ifdef __UCLIBC__
yann@111
    31
+# ifdef __UCLIBC_HAS_XLOCALE__
yann@111
    32
+	  _M_data->_M_decimal_point = __cloc->decimal_point_wc;
yann@111
    33
+	  _M_data->_M_thousands_sep = __cloc->thousands_sep_wc;
yann@111
    34
+# elif defined __UCLIBC_HAS_LOCALE__
yann@111
    35
+	  _M_data->_M_decimal_point = __global_locale->decimal_point_wc;
yann@111
    36
+	  _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc;
yann@111
    37
+# endif
yann@111
    38
+#else
yann@111
    39
 	  union { char *__s; wchar_t __w; } __u;
yann@111
    40
 	  __u.__s = __nl_langinfo_l(_NL_NUMERIC_DECIMAL_POINT_WC, __cloc);
yann@111
    41
 	  _M_data->_M_decimal_point = __u.__w;
yann@111
    42
 
yann@111
    43
 	  __u.__s = __nl_langinfo_l(_NL_NUMERIC_THOUSANDS_SEP_WC, __cloc);
yann@111
    44
 	  _M_data->_M_thousands_sep = __u.__w;
yann@111
    45
+#endif
yann@111
    46
 
yann@111
    47
 	  if (_M_data->_M_thousands_sep == L'\0')
yann@111
    48
 	    _M_data->_M_grouping = "";