This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
V3 PATCH: Replaces dynamic array with __builtin_alloca in ostream.tcc
- To: libstdc++ at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Subject: V3 PATCH: Replaces dynamic array with __builtin_alloca in ostream.tcc
- From: Greg Bumgardner <bumgard at roguewave dot com>
- Date: Wed, 21 Mar 2001 17:20:17 -0800
Replaces a dynamic array declaration that was missed in a previous update to
ostream.tcc.
-g.b.
Index: gcc/libstdc++-v3/include/bits/ostream.tcc
===================================================================
RCS file: /home/cvs/devtools/gcc/libstdc++-v3/include/bits/ostream.tcc,v
retrieving revision 1.1.1.2
diff -c -r1.1.1.2 ostream.tcc
*** gcc/libstdc++-v3/include/bits/ostream.tcc 2001/03/22 00:38:32 1.1.1.2
--- gcc/libstdc++-v3/include/bits/ostream.tcc 2001/03/22 00:47:39
***************
*** 561,567 ****
{
try {
streamsize __w = __out.width();
! _CharT __pads[__w];
streamsize __len = static_cast<streamsize>(_Traits::length(__s));
if (__w > __len)
{
--- 561,567 ----
{
try {
streamsize __w = __out.width();
! _CharT* __pads = static_cast<_CharT*>(__builtin_alloca(sizeof(_CharT) * __w));
streamsize __len = static_cast<streamsize>(_Traits::length(__s));
if (__w > __len)
{