libstc++: Fix typo in new check_effective_target_gthreads proc
authorJonathan Wakely <jwakely@redhat.com>
Thu, 26 Nov 2020 21:41:15 +0000 (21:41 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 26 Nov 2020 21:43:18 +0000 (21:43 +0000)
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

index bde8cc0..b94116f 100644 (file)
@@ -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 ""