[gcc r17-1807] libstdc++: vxworks: enable gthread_yield
Alexandre Oliva
aoliva@gcc.gnu.org
Wed Jun 24 13:55:28 GMT 2026
https://gcc.gnu.org/g:8c495de017cfe7b212eb4124cd902f68b306f1ec
commit r17-1807-g8c495de017cfe7b212eb4124cd902f68b306f1ec
Author: Alexandre Oliva <oliva@adacore.com>
Date: Wed Jun 24 10:47:22 2026 -0300
libstdc++: vxworks: enable gthread_yield
ac_has_sched_yield is a bit of a misnomer in libstdc++-v3, as it
guards the __gthread_yield call. That call is implemented on VxWorks,
even where it doesn't support POSIX sched_yield() proper. So enable
it.
for libstdc++-v3/ChangeLog
* acinclude.m4 (GLIBXX_ENABLE_LIBSTDCXX_TIME) [vxworks*]:
Enable __gthread_yield.
* configure: Rebuilt.
Diff:
---
libstdc++-v3/acinclude.m4 | 1 +
libstdc++-v3/configure | 3 ++-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4
index 13fb32af1e30..f8899119d18d 100644
--- a/libstdc++-v3/acinclude.m4
+++ b/libstdc++-v3/acinclude.m4
@@ -1788,6 +1788,7 @@ AC_DEFUN([GLIBCXX_ENABLE_LIBSTDCXX_TIME], [
ac_has_clock_monotonic=yes
ac_has_clock_realtime=yes
ac_has_nanosleep=yes
+ ac_has_sched_yield=yes
;;
gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
# Don't use link test for freestanding library, in case gcc_no_link=yes
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index 7c921ed282a2..acdec9253140 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -21487,6 +21487,7 @@ ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
ac_has_clock_monotonic=yes
ac_has_clock_realtime=yes
ac_has_nanosleep=yes
+ ac_has_sched_yield=yes
;;
gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
# Don't use link test for freestanding library, in case gcc_no_link=yes
@@ -54158,7 +54159,7 @@ $as_echo "$glibcxx_cv_libbacktrace_atomics" >&6; }
CXXFLAGS='-O0 -S'
cat > conftest.$ac_ext << EOF
-#line 54161 "configure"
+#line 54162 "configure"
#include <stddef.h>
int main()
{
More information about the Libstdc++-cvs
mailing list