diff options
| author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-07 17:20:45 +0000 |
|---|---|---|
| committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-01-07 17:20:45 +0000 |
| commit | aafaa29b4c7391bb6ed2936d7f9c5692de5e2db9 (patch) | |
| tree | 5153bfc5dab3d1dcf4a3f47c43aa4a6c837d1293 | |
| parent | 2727c872254d6a1e35844fd927057a26c2de3be4 (diff) | |
| download | ppe42-gcc-aafaa29b4c7391bb6ed2936d7f9c5692de5e2db9.tar.gz ppe42-gcc-aafaa29b4c7391bb6ed2936d7f9c5692de5e2db9.zip | |
2010-01-07 Paolo Carlini <paolo.carlini@oracle.com>
* include/bits/locale_facets_nonio.tcc (time_put<>::do_put): Avoid
pointless __builtin_alloca use.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155697 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | libstdc++-v3/ChangeLog | 5 | ||||
| -rw-r--r-- | libstdc++-v3/include/bits/locale_facets_nonio.tcc | 3 |
2 files changed, 6 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index cb10263e0bd..6c765650965 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +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 diff --git a/libstdc++-v3/include/bits/locale_facets_nonio.tcc b/libstdc++-v3/include/bits/locale_facets_nonio.tcc index e788457e2ab..48a913901e7 100644 --- a/libstdc++-v3/include/bits/locale_facets_nonio.tcc +++ b/libstdc++-v3/include/bits/locale_facets_nonio.tcc @@ -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 |

