From: Greg Bumgardner Date: Fri, 23 Mar 2001 20:29:14 +0000 (+0000) Subject: ostream.tcc: Use __builtin_alloca. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0d6eae43fc93fc72377f28dd0e061f3ab23a0400;p=gcc.git ostream.tcc: Use __builtin_alloca. 2001-03-22 Greg Bumgardner * include/bits/ostream.tcc: Use __builtin_alloca. From-SVN: r40793 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1212841430f..3c2cfcc76ee 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,7 @@ +2001-03-22 Greg Bumgardner + + * include/bits/ostream.tcc: Use __builtin_alloca. + 2001-03-22 Benjamin Kosnik * src/misc-inst.cc (__sink_unused_warning): Move to... diff --git a/libstdc++-v3/include/bits/ostream.tcc b/libstdc++-v3/include/bits/ostream.tcc index 50f3b9b38e1..70264461e08 100644 --- a/libstdc++-v3/include/bits/ostream.tcc +++ b/libstdc++-v3/include/bits/ostream.tcc @@ -561,7 +561,7 @@ namespace std { { try { streamsize __w = __out.width(); - _CharT __pads[__w]; + _CharT* __pads = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __w)); streamsize __len = static_cast(_Traits::length(__s)); if (__w > __len) {