diff options
author | Nitin A Kamble <nitin.a.kamble@intel.com> | 2010-11-08 08:30:41 -0800 |
---|---|---|
committer | Saul Wold <Saul.Wold@intel.com> | 2010-11-18 13:30:25 -0800 |
commit | b1dd356f5eab11fa6fc18013189e51c13fdd763b (patch) | |
tree | a1c8e13223ea108b88507c35dfdf0c1b9d6f1edb /meta/recipes-devtools/gcc/gcc-4.5.1/204-uclibc-locale-wchar_fix.patch | |
parent | caf8fe37496f49ed920036ac8763ec56b0029570 (diff) | |
download | poky-b1dd356f5eab11fa6fc18013189e51c13fdd763b.tar.gz |
gcc: upgrade from 4.5.0 to 4.5.1
Removed these patches which are not needed anymore.
gcc-4.5.0_to_svn_162697.patch.bz2 : All the commits in this patch is
part of the 4.5.1 branch. So moving to 4.5.1 makes this patch
obsolete
gcc_revert_base_version_to_4.5.0.patch: moving to 4.5.1 removes need
of this patch
gcc-pr43698-arm-rev-instr.patch: upstream has this fix.
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-4.5.1/204-uclibc-locale-wchar_fix.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-4.5.1/204-uclibc-locale-wchar_fix.patch | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-4.5.1/204-uclibc-locale-wchar_fix.patch b/meta/recipes-devtools/gcc/gcc-4.5.1/204-uclibc-locale-wchar_fix.patch new file mode 100644 index 0000000000..160ab35bb3 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-4.5.1/204-uclibc-locale-wchar_fix.patch | |||
@@ -0,0 +1,48 @@ | |||
1 | --- gcc/libstdc++-v3/config/locale/uclibc/monetary_members.cc.uclibc200_wchar~ 2006-03-10 15:32:37 +0100 | ||
2 | +++ gcc/libstdc++-v3/config/locale/uclibc/monetary_members.cc 2006-03-10 15:37:27 +0100 | ||
3 | @@ -401,7 +401,7 @@ | ||
4 | # ifdef __UCLIBC_HAS_XLOCALE__ | ||
5 | _M_data->_M_decimal_point = __cloc->decimal_point_wc; | ||
6 | _M_data->_M_thousands_sep = __cloc->thousands_sep_wc; | ||
7 | -# else | ||
8 | +# elif defined __UCLIBC_HAS_LOCALE__ | ||
9 | _M_data->_M_decimal_point = __global_locale->decimal_point_wc; | ||
10 | _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc; | ||
11 | # endif | ||
12 | @@ -556,7 +556,7 @@ | ||
13 | # ifdef __UCLIBC_HAS_XLOCALE__ | ||
14 | _M_data->_M_decimal_point = __cloc->decimal_point_wc; | ||
15 | _M_data->_M_thousands_sep = __cloc->thousands_sep_wc; | ||
16 | -# else | ||
17 | +# elif defined __UCLIBC_HAS_LOCALE__ | ||
18 | _M_data->_M_decimal_point = __global_locale->decimal_point_wc; | ||
19 | _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc; | ||
20 | # endif | ||
21 | --- gcc/libstdc++-v3/config/locale/uclibc/numeric_members.cc.uclibc200_wchar~ 2006-03-10 15:32:37 +0100 | ||
22 | +++ gcc/libstdc++-v3/config/locale/uclibc/numeric_members.cc 2006-03-10 15:37:27 +0100 | ||
23 | @@ -127,12 +127,25 @@ | ||
24 | { | ||
25 | // Named locale. | ||
26 | // NB: In the GNU model wchar_t is always 32 bit wide. | ||
27 | +#ifdef __UCLIBC_MJN3_ONLY__ | ||
28 | +#warning fix this... should be numeric | ||
29 | +#endif | ||
30 | +#ifdef __UCLIBC__ | ||
31 | +# ifdef __UCLIBC_HAS_XLOCALE__ | ||
32 | + _M_data->_M_decimal_point = __cloc->decimal_point_wc; | ||
33 | + _M_data->_M_thousands_sep = __cloc->thousands_sep_wc; | ||
34 | +# elif defined __UCLIBC_HAS_LOCALE__ | ||
35 | + _M_data->_M_decimal_point = __global_locale->decimal_point_wc; | ||
36 | + _M_data->_M_thousands_sep = __global_locale->thousands_sep_wc; | ||
37 | +# endif | ||
38 | +#else | ||
39 | union { char *__s; wchar_t __w; } __u; | ||
40 | __u.__s = __nl_langinfo_l(_NL_NUMERIC_DECIMAL_POINT_WC, __cloc); | ||
41 | _M_data->_M_decimal_point = __u.__w; | ||
42 | |||
43 | __u.__s = __nl_langinfo_l(_NL_NUMERIC_THOUSANDS_SEP_WC, __cloc); | ||
44 | _M_data->_M_thousands_sep = __u.__w; | ||
45 | +#endif | ||
46 | |||
47 | if (_M_data->_M_thousands_sep == L'\0') | ||
48 | _M_data->_M_grouping = ""; | ||