This is the mail archive of the gcc-testresults@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Results for 3.2 20020805 (prerelease) testsuite on sparc-suse-linux-gnu


This includes the attached patch by Benjamin Kosnik. For more
information read
http://gcc.gnu.org/ml/gcc-patches/2002-08/msg00184.html.

Robert

Index: libstdc++-v3/src/strstream.cc
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/src/strstream.cc,v
retrieving revision 1.8.16.2
diff -u -r1.8.16.2 strstream.cc
--- libstdc++-v3/src/strstream.cc	8 Jun 2002 15:15:43 -0000	1.8.16.2
+++ libstdc++-v3/src/strstream.cc	5 Aug 2002 18:54:31 -0000
@@ -60,12 +60,13 @@
   : _Base(), _M_alloc_fun(0), _M_free_fun(0), _M_dynamic(true), 
     _M_frozen(false), _M_constant(false)
   {
-    _M_buf_size = _M_buf_size_opt = max(initial_capacity, streamsize(16));
-    _M_buf = _M_alloc(_M_buf_size);
-    if (_M_buf) 
+    streamsize n = max(initial_capacity, streamsize(16));
+    
+    char* buf = _M_alloc(n);
+    if (buf) 
       {
-	setp(_M_buf, _M_buf + _M_buf_size);
-	setg(_M_buf, _M_buf, _M_buf);
+	setp(buf, buf + n);
+	setg(buf, buf, buf);
       }
   }
 
@@ -73,12 +74,13 @@
   : _Base(), _M_alloc_fun(alloc_f), _M_free_fun(free_f), _M_dynamic(true), 
     _M_frozen(false), _M_constant(false)
   {
-    _M_buf_size = _M_buf_size_opt = 16;
-    _M_buf = _M_alloc(_M_buf_size);
-    if (_M_buf) 
+    streamsize n = 16;
+
+    char* buf = _M_alloc(n);
+    if (buf) 
       {
-	setp(_M_buf, _M_buf + _M_buf_size);
-	setg(_M_buf, _M_buf, _M_buf);
+	setp(buf, buf + n);
+	setg(buf, buf, buf);
       }
   }
 
@@ -116,14 +118,7 @@
   strstreambuf::~strstreambuf()
   {
     if (_M_dynamic && !_M_frozen)
-      {
-	char* p = this->eback();
-	_M_free(p);
-	if (p == _M_buf)
-	  _M_buf = 0;
-      }
-    if (_M_buf)
-      _M_free(_M_buf);
+      _M_free(eback());
   }
 
   void 
@@ -169,8 +164,6 @@
 		old_get_offset = gptr() - eback();
 	      }
 	    
-	    _M_buf = buf;
-	    _M_buf_size = _M_buf_size_opt = new_size;
 	    setp(buf, buf + new_size);
 	    pbump(old_size);
 
Index: libstdc++-v3/testsuite/backward/strstream_members.cc
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/testsuite/backward/strstream_members.cc,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 strstream_members.cc
--- libstdc++-v3/testsuite/backward/strstream_members.cc	8 Jun 2002 15:15:44 -0000	1.1.2.1
+++ libstdc++-v3/testsuite/backward/strstream_members.cc	5 Aug 2002 18:54:38 -0000
@@ -29,12 +29,21 @@
    for (unsigned i=0 ; i!= 1000 ; ++i)
       s << i << std::endl;
    s << std::ends;
-
    return 0;
 }
 
+
+int test02()
+{
+  std::ostrstream buf;
+  buf << std::ends;
+  char *s = buf.str ();
+  delete [] s;
+}
+
 int main()
 {
   test01();
+  test02();
   return 0;
 }
LAST_UPDATED: Mon Aug  5 22:18:41 UTC 2002

Native configuration is sparc-suse-linux-gnu

		=== g++ tests ===


Running target unix
XPASS: g++.other/init5.C  Execution test

		=== g++ Summary ===

# of expected passes		7245
# of unexpected successes	1
# of expected failures		87
# of untested testcases		22
# of unsupported tests		4
/local/gccbuild/gcc/testsuite/../g++ version 3.2 20020805 (prerelease)

		=== g77 tests ===


Running target unix

		=== g77 Summary ===

# of expected passes		1452
# of unsupported tests		8
/local/gccbuild/gcc/testsuite/../g77 version 3.2 20020805 (prerelease)

		=== gcc tests ===


Running target unix

		=== gcc Summary ===

# of expected passes		18440
# of expected failures		66
# of unsupported tests		109
/local/gccbuild/gcc/xgcc version 3.2 20020805 (prerelease)

		=== objc tests ===


Running target unix

		=== objc Summary ===

# of expected passes		1035
# of expected failures		6
/local/gccbuild/gcc/xgcc version 3.2 20020805 (prerelease)

		=== libstdc++-v3 tests ===


Running target unix
XPASS: 22_locale/ctype_is_wchar_t.cc execution test
XPASS: 22_locale/time_put_members_char.cc execution test
XPASS: 22_locale/time_put_members_wchar_t.cc execution test
FAIL: 26_numerics/c99_classification_macros_c.cc (test for excess errors)

		=== libstdc++-v3 Summary ===

# of expected passes		408
# of unexpected failures	1
# of unexpected successes	3
# of expected failures		23

Compiler version: 3.2 20020805 (prerelease) 
Platform: sparc-suse-linux-gnu
configure flags: --host=sparc-suse-linux --enable-threads=posix --prefix=/opt/Pkg/Linux/sparc64/gcc32 --enable-languages=c,c++,f77,objc --disable-libgcj --with-gxx-include-dir=/opt/Pkg/Linux/sparc64/gcc32/include/g++ --with-system-zlib --enable-shared --enable-__cxa_atexit


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