From 1a00786414c7ee2f228562fab5c43491a13284c1 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 26 Nov 2020 21:41:15 +0000 Subject: [PATCH] libstc++: Fix typo in new check_effective_target_gthreads proc Also fix copy&pasted comments referring to the wrong things. libstdc++-v3/ChangeLog: * testsuite/lib/libstdc++.exp (check_effective_target_gthreads): Call check_v3_target_gthreads not check_v3_target_gthreads_timed. --- libstdc++-v3/testsuite/lib/libstdc++.exp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/libstdc++-v3/testsuite/lib/libstdc++.exp b/libstdc++-v3/testsuite/lib/libstdc++.exp index bde8cc0..b94116f 100644 --- a/libstdc++-v3/testsuite/lib/libstdc++.exp +++ b/libstdc++-v3/testsuite/lib/libstdc++.exp @@ -1619,7 +1619,8 @@ proc check_effective_target_tbb-backend { } { # Return 1 if futex syscall is available proc check_effective_target_futex { } { return [check_v3_target_prop_cached et_futex { - # Set up and compile a C++ test program that depends on tbb + # Set up and compile a C++ test program that depends on futex + # being supported. set src futex[pid].cc set exe futex[pid].x @@ -1643,9 +1644,10 @@ proc check_effective_target_futex { } { }] } -# Return 1 if futex syscall is available +# Return 1 if C++11 [threads] facilities are available via gthreads, +# 0 otherwise. proc check_effective_target_gthreads { } { - return [check_v3_target_gthreads_timed] + return [check_v3_target_gthreads] } set additional_prunes "" -- 2.7.4