summaryrefslogtreecommitdiffstats
path: root/meta/packages/gcc/gcc-4.3.3/307-locale_facets.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.3/307-locale_facets.patch')
-rw-r--r--meta/packages/gcc/gcc-4.3.3/307-locale_facets.patch19
1 files changed, 6 insertions, 13 deletions
diff --git a/meta/packages/gcc/gcc-4.3.3/307-locale_facets.patch b/meta/packages/gcc/gcc-4.3.3/307-locale_facets.patch
index 412f8657dc..774fcfa2ca 100644
--- a/meta/packages/gcc/gcc-4.3.3/307-locale_facets.patch
+++ b/meta/packages/gcc/gcc-4.3.3/307-locale_facets.patch
@@ -4,23 +4,16 @@ std::snprintf function, that, on uClibc, doens't handle sized 0 buffer.
4 4
5Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> 5Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
6 6
7--- gcc-4.2.1/libstdc++-v3/include/bits/locale_facets.tcc 2006-10-17 18:43:47.000000000 +0200 7Index: gcc-4.3.1/libstdc++-v3/include/bits/locale_facets.tcc
8+++ gcc-4.2.1-st/libstdc++-v3/include/bits/locale_facets.tcc 2007-08-22 18:54:23.000000000 +0200 8===================================================================
9@@ -1143,7 +1143,7 @@ _GLIBCXX_BEGIN_LDBL_NAMESPACE 9--- gcc-4.3.1.orig/libstdc++-v3/include/bits/locale_facets.tcc 2007-11-26 17:59:41.000000000 -0800
10+++ gcc-4.3.1/libstdc++-v3/include/bits/locale_facets.tcc 2008-08-16 02:14:48.000000000 -0700
11@@ -1004,7 +1004,7 @@
10 const int __cs_size = __fixed ? __max_exp + __prec + 4 12 const int __cs_size = __fixed ? __max_exp + __prec + 4
11 : __max_digits * 2 + __prec; 13 : __max_digits * 2 + __prec;
12 char* __cs = static_cast<char*>(__builtin_alloca(__cs_size)); 14 char* __cs = static_cast<char*>(__builtin_alloca(__cs_size));
13- __len = std::__convert_from_v(_S_get_c_locale(), __cs, 0, __fbuf, 15- __len = std::__convert_from_v(_S_get_c_locale(), __cs, 0, __fbuf,
14+ __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf, 16+ __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf,
15 __prec, __v); 17 __prec, __v);
16 #endif 18 #endif
17 19
18@@ -1777,7 +1777,7 @@ _GLIBCXX_BEGIN_LDBL_NAMESPACE
19 // max_exponent10 + 1 for the integer part, + 2 for sign and '\0'.
20 const int __cs_size = numeric_limits<long double>::max_exponent10 + 3;
21 char* __cs = static_cast<char*>(__builtin_alloca(__cs_size));
22- int __len = std::__convert_from_v(_S_get_c_locale(), __cs, 0, "%.*Lf",
23+ int __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, "%.*Lf",
24 0, __units);
25 #endif
26 string_type __digits(__len, char_type());