* testsuite/performance/allocator.cc: Demangle typeid(obj).name().
* testsuite/performance/allocator_thread.cc: Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75571
138bc75d-0d04-0410-961f-
82ee72b054a4
+2004-01-09 Paolo Carlini <pcarlini@suse.de>
+
+ * testsuite/performance/allocator.cc: Demangle typeid(obj).name().
+ * testsuite/performance/allocator_thread.cc: Likewise.
+
2004-01-07 Benjamin Kosnik <bkoz@redhat.com>
* crossconfig.m4: Add LFS, io bits to linux cross config.
#include <sstream>
#include <ext/mt_allocator.h>
#include <ext/malloc_allocator.h>
+#include <cxxabi.h>
#include <testsuite_performance.h>
using namespace std;
test_container(Container obj)
{
using namespace __gnu_test;
+ int status;
time_counter time;
resource_counter resource;
std::ostringstream comment;
comment << "iterations: " << test_iterations << '\t';
- comment << "type: " << typeid(obj).name();
+ comment << "type: " << abi::__cxa_demangle(typeid(obj).name(),
+ 0, 0, &status);
report_header(__FILE__, comment.str());
report_performance(__FILE__, string(), time, resource);
}
#include <pthread.h>
#include <ext/mt_allocator.h>
#include <ext/malloc_allocator.h>
+#include <cxxabi.h>
#include <testsuite_performance.h>
using namespace std;
test_container(Container obj)
{
using namespace __gnu_test;
+ int status;
+
time_counter time;
resource_counter resource;
std::ostringstream comment;
comment << "iterations: " << iterations << '\t';
- comment << "type: " << typeid(obj).name();
+ comment << "type: " << abi::__cxa_demangle(typeid(obj).name(),
+ 0, 0, &status);
report_header(__FILE__, comment.str());
report_performance(__FILE__, string(), time, resource);
}