https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105021
--- Comment #1 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:5bf59b004808abf6acbfe5ef54a0f9216b8dce22 commit r12-7778-g5bf59b004808abf6acbfe5ef54a0f9216b8dce22 Author: Jonathan Wakely <jwak...@redhat.com> Date: Tue Mar 22 21:17:01 2022 +0000 libstdc++: Disable atomic wait for freestanding [PR105021] We use either condition variables or futexes to implement atomic waits, so we can't do it in freestanding. This is non-conforming, so should be revisited later, probably by making freestanding atomic waiting operations spin without ever blocking. Reviewed-by: Thomas Rodgers <trodg...@redhat.com> libstdc++-v3/ChangeLog: PR libstdc++/105021 * include/bits/atomic_base.h [!_GLIBCXX_HOSTED]: Do not include <bits/atomic_wait.h> for freestanding.