summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-09 10:09:31 +0000
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>2004-01-09 10:09:31 +0000
commita255810b0ef89d2a5a18d493e106880e8954f7f1 (patch)
tree431d69005fdccc771f222d68f742b2cfdc217f7c
parentbbda8cd23cd658c05b426e74ac10a8f4c48ece75 (diff)
downloadppe42-gcc-a255810b0ef89d2a5a18d493e106880e8954f7f1.tar.gz
ppe42-gcc-a255810b0ef89d2a5a18d493e106880e8954f7f1.zip
2004-01-09 Paolo Carlini <pcarlini@suse.de>
* 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
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/testsuite/performance/allocator.cc5
-rw-r--r--libstdc++-v3/testsuite/performance/allocator_thread.cc6
3 files changed, 14 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 5ac66961d58..ba2a6e90d4d 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+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.
diff --git a/libstdc++-v3/testsuite/performance/allocator.cc b/libstdc++-v3/testsuite/performance/allocator.cc
index 53058edb395..88314a13bef 100644
--- a/libstdc++-v3/testsuite/performance/allocator.cc
+++ b/libstdc++-v3/testsuite/performance/allocator.cc
@@ -39,6 +39,7 @@
#include <sstream>
#include <ext/mt_allocator.h>
#include <ext/malloc_allocator.h>
+#include <cxxabi.h>
#include <testsuite_performance.h>
using namespace std;
@@ -108,6 +109,7 @@ template<typename Container>
test_container(Container obj)
{
using namespace __gnu_test;
+ int status;
time_counter time;
resource_counter resource;
@@ -118,7 +120,8 @@ template<typename Container>
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);
}
diff --git a/libstdc++-v3/testsuite/performance/allocator_thread.cc b/libstdc++-v3/testsuite/performance/allocator_thread.cc
index 016f45a5d30..98cf2b14291 100644
--- a/libstdc++-v3/testsuite/performance/allocator_thread.cc
+++ b/libstdc++-v3/testsuite/performance/allocator_thread.cc
@@ -40,6 +40,7 @@
#include <pthread.h>
#include <ext/mt_allocator.h>
#include <ext/malloc_allocator.h>
+#include <cxxabi.h>
#include <testsuite_performance.h>
using namespace std;
@@ -110,6 +111,8 @@ template<typename Container>
test_container(Container obj)
{
using namespace __gnu_test;
+ int status;
+
time_counter time;
resource_counter resource;
@@ -131,7 +134,8 @@ template<typename Container>
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);
}
OpenPOWER on IntegriCloud