This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

V3 PATCH: Replaces dynamic array with __builtin_alloca in ostream.tcc


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)
  	      {

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]