Commit 0d6eae43 by Greg Bumgardner Committed by Benjamin Kosnik

ostream.tcc: Use __builtin_alloca.

2001-03-22  Greg Bumgardner <bumgard@roguewave.com>

	* include/bits/ostream.tcc: Use __builtin_alloca.

From-SVN: r40793
parent 6ca9928a
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)
{
......
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