Commit 3095eb8e by Paolo Carlini Committed by Paolo Carlini

locale_facets_nonio.tcc (time_put<>::do_put): Avoid pointless __builtin_alloca use.

2010-01-07  Paolo Carlini  <paolo.carlini@oracle.com>

	* include/bits/locale_facets_nonio.tcc (time_put<>::do_put): Avoid
	pointless __builtin_alloca use.

From-SVN: r155697
parent f68a75df
2010-01-07 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/locale_facets_nonio.tcc (time_put<>::do_put): Avoid
pointless __builtin_alloca use.
2010-01-06 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/26701
......
......@@ -1182,8 +1182,7 @@ _GLIBCXX_END_LDBL_NAMESPACE
// NB: This size is arbitrary. Should this be a data member,
// initialized at construction?
const size_t __maxlen = 128;
char_type* __res =
static_cast<char_type*>(__builtin_alloca(sizeof(char_type) * __maxlen));
char_type __res[__maxlen];
// NB: In IEE 1003.1-200x, and perhaps other locale models, it
// is possible that the format character will be longer than one
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment