[gcc r11-5452] libstc++: Fix typo in new check_effective_target_gthreads proc
Jonathan Wakely
redi@gcc.gnu.org
Thu Nov 26 22:56:01 GMT 2020
https://gcc.gnu.org/g:1a00786414c7ee2f228562fab5c43491a13284c1
commit r11-5452-g1a00786414c7ee2f228562fab5c43491a13284c1
Author: Jonathan Wakely <jwakely@redhat.com>
Date: Thu Nov 26 21:41:15 2020 +0000
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.
Diff:
---
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 bde8cc0cc91..b94116ff4ea 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 ""
More information about the Libstdc++-cvs
mailing list