re PR libstdc++/42491 (performance/30_threads/future/polling.cc fails at compile time)

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.

From-SVN: r155681
This commit is contained in:
Benjamin Kosnik 2010-01-06 22:55:52 +00:00 committed by Benjamin Kosnik
parent e67271bd65
commit 41bcd5a9fd
3 changed files with 12 additions and 1 deletions

View 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> 2010-01-06 Paolo Carlini <paolo.carlini@oracle.com>
* testsuite/22_locale/time_get/get_weekday/char/38081-2.cc: * testsuite/22_locale/time_get/get_weekday/char/38081-2.cc:

View File

@ -32,7 +32,7 @@ SH_FLAG="-Wl,--rpath -Wl,$BUILD_DIR/../../gcc \
-Wl,--rpath -Wl,$BUILD_DIR/src/.libs" -Wl,--rpath -Wl,$BUILD_DIR/src/.libs"
ST_FLAG="-static" ST_FLAG="-static"
LINK=$SH_FLAG LINK=$SH_FLAG
CXX="$COMPILER $INCLUDES $FLAGS $CXXFLAGS $LINK" CXX="$COMPILER $INCLUDES $FLAGS -std=gnu++0x $CXXFLAGS $LINK"
LIBS="./libtestc++.a" LIBS="./libtestc++.a"
TESTS_FILE="testsuite_files_performance" TESTS_FILE="testsuite_files_performance"

View File

@ -28,6 +28,10 @@ void poll(std::shared_future<void> f)
int main() int main()
{ {
#ifdef TEST_T1
#define thread_type true
#endif
using namespace __gnu_test; using namespace __gnu_test;
time_counter time; time_counter time;
resource_counter resource; resource_counter resource;