OSDN Git Service

2010-01-06 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jan 2010 22:55:52 +0000 (22:55 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 6 Jan 2010 22:55:52 +0000 (22:55 +0000)
PR libstdc++/42491
* scripts/check_performance (CXX): Add -std=gnu++0x.
* testsuite/performance/30_threads/future/polling.cc: Mark up as
using threads.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@155681 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/scripts/check_performance
libstdc++-v3/testsuite/performance/30_threads/future/polling.cc

index 8083c4b..02c19c1 100644 (file)
@@ -1,3 +1,10 @@
+2010-01-06  Benjamin Kosnik  <bkoz@redhat.com>
+
+       PR libstdc++/42491
+       * scripts/check_performance (CXX): Add -std=gnu++0x.
+       * testsuite/performance/30_threads/future/polling.cc: Mark up as
+       using threads.
+
 2010-01-06  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * testsuite/22_locale/time_get/get_weekday/char/38081-2.cc:
index 4e70106..d196355 100755 (executable)
@@ -32,7 +32,7 @@ SH_FLAG="-Wl,--rpath -Wl,$BUILD_DIR/../../gcc \
          -Wl,--rpath -Wl,$BUILD_DIR/src/.libs"
 ST_FLAG="-static"
 LINK=$SH_FLAG
-CXX="$COMPILER $INCLUDES $FLAGS $CXXFLAGS $LINK"
+CXX="$COMPILER $INCLUDES $FLAGS -std=gnu++0x $CXXFLAGS $LINK"
 LIBS="./libtestc++.a"
 TESTS_FILE="testsuite_files_performance"
 
index 21405e1..50d622c 100644 (file)
@@ -28,6 +28,10 @@ void poll(std::shared_future<void> f)
 
 int main()
 {
+#ifdef TEST_T1
+#define thread_type true
+#endif 
+
   using namespace __gnu_test;
   time_counter time;
   resource_counter resource;