OSDN Git Service

* scripts/check_performance: Only compile with $THREAD_FLAG
[pf3gnuchains/gcc-fork.git] / libstdc++-v3 / testsuite / testsuite_performance.h
index f70e527..56b02bc 100644 (file)
@@ -183,6 +183,11 @@ namespace __gnu_test
 
     std::ofstream out(name, std::ios_base::app);
 
+#ifdef __GTHREADS
+    if (__gthread_active_p ())
+      testname.append ("-thread");
+#endif
+
     out.setf(std::ios_base::left);
     out << std::setw(25) << testname << tab;
     out << std::setw(25) << comment << tab;
@@ -209,6 +214,11 @@ namespace __gnu_test
 
     std::ofstream out(name, std::ios_base::app);
 
+#ifdef __GTHREADS
+    if (__gthread_active_p ())
+      testname.append ("-thread");
+#endif
+
     out.setf(std::ios_base::left);
     out << std::setw(25) << testname << tab;
     out << std::setw(40) << header << tab;