diff options
author | Greg Bumgardner <bumgard@roguewave.com> | 2001-03-23 20:29:14 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@gcc.gnu.org> | 2001-03-23 20:29:14 +0000 |
commit | 0d6eae43fc93fc72377f28dd0e061f3ab23a0400 (patch) | |
tree | dc0eb334f86f899c78a13571a3dd908ebc07fe7f | |
parent | 6ca9928accab3fa2f1172457b0b97d339b8a0f24 (diff) | |
download | gcc-0d6eae43fc93fc72377f28dd0e061f3ab23a0400.zip gcc-0d6eae43fc93fc72377f28dd0e061f3ab23a0400.tar.gz gcc-0d6eae43fc93fc72377f28dd0e061f3ab23a0400.tar.bz2 |
ostream.tcc: Use __builtin_alloca.
2001-03-22 Greg Bumgardner <bumgard@roguewave.com>
* include/bits/ostream.tcc: Use __builtin_alloca.
From-SVN: r40793
-rw-r--r-- | libstdc++-v3/ChangeLog | 4 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/ostream.tcc | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1212841..3c2cfcc 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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... diff --git a/libstdc++-v3/include/bits/ostream.tcc b/libstdc++-v3/include/bits/ostream.tcc index 50f3b9b..7026446 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<streamsize>(_Traits::length(__s)); if (__w > __len) { |