ostream.tcc: Use __builtin_alloca.
2001-03-22 Greg Bumgardner <bumgard@roguewave.com> * include/bits/ostream.tcc: Use __builtin_alloca. From-SVN: r40793
This commit is contained in:
parent
6ca9928acc
commit
0d6eae43fc
@ -1,3 +1,7 @@
|
||||
2001-03-22 Greg Bumgardner <bumgard@roguewave.com>
|
||||
|
||||
* include/bits/ostream.tcc: Use __builtin_alloca.
|
||||
|
||||
2001-03-22 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* src/misc-inst.cc (__sink_unused_warning): Move to...
|
||||
|
@ -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<streamsize>(_Traits::length(__s));
|
||||
if (__w > __len)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user