From: Alexandre Oliva Date: Wed, 24 Jun 2026 13:47:22 +0000 (-0300) Subject: libstdc++: vxworks: enable gthread_yield X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8c495de017cfe7b212eb4124cd902f68b306f1ec;p=thirdparty%2Fgcc.git 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 --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4 index 13fb32af1e3..f8899119d18 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 7c921ed282a..acdec925314 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 int main() {