]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Disable atomic wait for freestanding [PR105021]
authorJonathan Wakely <jwakely@redhat.com>
Tue, 22 Mar 2022 21:17:01 +0000 (21:17 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Tue, 12 Apr 2022 20:17:50 +0000 (21:17 +0100)
commitac0e9b696c362fdd49752260ca7b3ce9e467ec36
treee423b9a3d1662e9bd3c4401b992a1a171734d333
parent105f1c08369aa6702d070f911dd658b93230ac46
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 <trodgers@redhat.com>
libstdc++-v3/ChangeLog:

PR libstdc++/105021
* include/bits/atomic_base.h [!_GLIBCXX_HOSTED]: Do not include
<bits/atomic_wait.h> for freestanding.

(cherry picked from commit 5bf59b004808abf6acbfe5ef54a0f9216b8dce22)
libstdc++-v3/include/bits/atomic_base.h