diff options
author | Robert Schuster <thebohemian@gmx.net> | 2008-08-21 15:44:29 +0000 |
---|---|---|
committer | Robert Schuster <thebohemian@gmx.net> | 2008-08-21 15:44:29 +0000 |
commit | 1a29e9f0e4f2b31e0c668b7a4daa6ca436119a10 (patch) | |
tree | 2ac29c58a1d67ac30fe3aa3786f14d62d177d9ed /packages/gcc/gcc-4.3.1/307-locale_facets.patch | |
parent | dd5d2d7643d4dab3b88d2fdf85df726c37af0982 (diff) | |
parent | e295c6669417f74e0127fcce8a80627a1c042ef3 (diff) |
merge of '7ba62c1bc5f5f44c638e1e5f4805429a188ca3a6'
and 'a211067fbce0623d7710d98f40f12ce3a2247ecf'
Diffstat (limited to 'packages/gcc/gcc-4.3.1/307-locale_facets.patch')
-rw-r--r-- | packages/gcc/gcc-4.3.1/307-locale_facets.patch | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/packages/gcc/gcc-4.3.1/307-locale_facets.patch b/packages/gcc/gcc-4.3.1/307-locale_facets.patch index 412f8657dc..774fcfa2ca 100644 --- a/packages/gcc/gcc-4.3.1/307-locale_facets.patch +++ b/packages/gcc/gcc-4.3.1/307-locale_facets.patch @@ -4,23 +4,16 @@ std::snprintf function, that, on uClibc, doens't handle sized 0 buffer. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> ---- gcc-4.2.1/libstdc++-v3/include/bits/locale_facets.tcc 2006-10-17 18:43:47.000000000 +0200 -+++ gcc-4.2.1-st/libstdc++-v3/include/bits/locale_facets.tcc 2007-08-22 18:54:23.000000000 +0200 -@@ -1143,7 +1143,7 @@ _GLIBCXX_BEGIN_LDBL_NAMESPACE +Index: gcc-4.3.1/libstdc++-v3/include/bits/locale_facets.tcc +=================================================================== +--- gcc-4.3.1.orig/libstdc++-v3/include/bits/locale_facets.tcc 2007-11-26 17:59:41.000000000 -0800 ++++ gcc-4.3.1/libstdc++-v3/include/bits/locale_facets.tcc 2008-08-16 02:14:48.000000000 -0700 +@@ -1004,7 +1004,7 @@ const int __cs_size = __fixed ? __max_exp + __prec + 4 : __max_digits * 2 + __prec; char* __cs = static_cast<char*>(__builtin_alloca(__cs_size)); - __len = std::__convert_from_v(_S_get_c_locale(), __cs, 0, __fbuf, -+ __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf, ++ __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, __fbuf, __prec, __v); #endif -@@ -1777,7 +1777,7 @@ _GLIBCXX_BEGIN_LDBL_NAMESPACE - // max_exponent10 + 1 for the integer part, + 2 for sign and '\0'. - const int __cs_size = numeric_limits<long double>::max_exponent10 + 3; - char* __cs = static_cast<char*>(__builtin_alloca(__cs_size)); -- int __len = std::__convert_from_v(_S_get_c_locale(), __cs, 0, "%.*Lf", -+ int __len = std::__convert_from_v(_S_get_c_locale(), __cs, __cs_size, "%.*Lf", - 0, __units); - #endif - string_type __digits(__len, char_type()); |