This is the mail archive of the
gcc-testresults@gcc.gnu.org
mailing list for the GCC project.
Results for 3.2 20020806 (prerelease) testsuite on sparc-sun-solaris2.8
- From: Robert Schiele <schiele at pi3 dot informatik dot uni-mannheim dot de>
- To: gcc-testresults at gcc dot gnu dot org
- Date: Wed, 7 Aug 2002 08:24:09 +0200 (MEST)
- Subject: Results for 3.2 20020806 (prerelease) testsuite on sparc-sun-solaris2.8
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: Tue Aug 6 22:18:59 UTC 2002
Native configuration is sparc-sun-solaris2.8
=== g++ tests ===
Running target unix
FAIL: g++.dg/special/conpr-2.C execution test
FAIL: g++.dg/special/conpr-3.C execution test
FAIL: g++.dg/special/initp1.C execution test
=== g++ Summary ===
# of expected passes 7248
# of unexpected failures 3
# of expected failures 88
# of untested testcases 21
# of unsupported tests 3
/export/share1/gccbuild/gcc/testsuite/../g++ version 3.2 20020806 (prerelease)
=== g77 tests ===
Running target unix
=== g77 Summary ===
# of expected passes 1452
# of unsupported tests 8
/export/share1/gccbuild/gcc/testsuite/../g77 version 3.2 20020806 (prerelease)
=== gcc tests ===
Running target unix
UNRESOLVED: weak-1.c
UNRESOLVED: weak-2.c
UNRESOLVED: wkali-1.c
UNRESOLVED: wkali-2.c
=== gcc Summary ===
# of expected passes 18431
# of expected failures 66
# of unresolved testcases 4
# of unsupported tests 110
/export/share1/gccbuild/gcc/xgcc version 3.2 20020806 (prerelease)
=== objc tests ===
Running target unix
=== objc Summary ===
# of expected passes 1035
# of expected failures 6
/export/share1/gccbuild/gcc/xgcc version 3.2 20020806 (prerelease)
=== libstdc++-v3 tests ===
Running target unix
XPASS: 22_locale/collate_members_wchar_t.cc execution test
XPASS: 22_locale/ctype_is_wchar_t.cc execution test
XPASS: 22_locale/money_get_members_wchar_t.cc execution test
XPASS: 22_locale/money_put_members_wchar_t.cc execution test
XPASS: 22_locale/moneypunct_members_wchar_t.cc execution test
XPASS: 22_locale/num_get_members_wchar_t.cc execution test
XPASS: 22_locale/num_put_members_wchar_t.cc execution test
XPASS: 22_locale/numpunct_members_wchar_t.cc execution test
XPASS: 22_locale/time_get_members_wchar_t.cc execution test
XPASS: 22_locale/time_put_members_wchar_t.cc execution test
FAIL: 27_io/istream_extractor_arith.cc execution test
WARNING: program timed out.
FAIL: thread/pthread4.cc execution test
=== libstdc++-v3 Summary ===
# of expected passes 407
# of unexpected failures 2
# of unexpected successes 10
# of expected failures 16
Compiler version: 3.2 20020806 (prerelease)
Platform: sparc-sun-solaris2.8
configure flags: --host=sparc-sun-solaris2.8 --enable-threads=posix --prefix=/opt/Pkg/SunOS/gcc32 --enable-languages=c,c++,f77,objc --disable-libgcj --with-gxx-include-dir=/opt/Pkg/SunOS/gcc32/include/g++ --with-system-zlib --enable-shared