diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 8083c4b584120f60a807887e36ff71aac11e46ab..02c19c10dcbdfdd0fb1241e7e9d6d5eb06c522e6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -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: diff --git a/libstdc++-v3/scripts/check_performance b/libstdc++-v3/scripts/check_performance index 4e70106a00555157ff5cb52d59ca27f7435b0293..d196355bd44deeba2a28421cb42f68c3820e6c1b 100755 --- a/libstdc++-v3/scripts/check_performance +++ b/libstdc++-v3/scripts/check_performance @@ -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" diff --git a/libstdc++-v3/testsuite/performance/30_threads/future/polling.cc b/libstdc++-v3/testsuite/performance/30_threads/future/polling.cc index 21405e18ad41277982022dcdbbcc21d566f4d1fa..50d622c41a6e4fe683aa3bdea5ff70f48ecea699 100644 --- a/libstdc++-v3/testsuite/performance/30_threads/future/polling.cc +++ b/libstdc++-v3/testsuite/performance/30_threads/future/polling.cc @@ -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;