]> git.ipfire.org Git - thirdparty/gcc.git/commit - libstdc++-v3/libsupc++/eh_terminate.cc
libstdc++: Add wrapper for internal uses of std::terminate
authorJonathan Wakely <jwakely@redhat.com>
Fri, 8 Oct 2021 10:35:53 +0000 (11:35 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Mon, 11 Oct 2021 19:35:51 +0000 (20:35 +0100)
commit250ddf4c0b44de26e9c6cab237c7e248e408e95c
tree8b7fdadbf4f0e9c9c3635617f00d3014a14f3b17
parent247bac507e63b32d4dc23ef1c55f300aafea24c6
libstdc++: Add wrapper for internal uses of std::terminate

This adds an inline wrapper for std::terminate that doesn't add the
declaration of std::terminate to namespace std. This allows the
library to terminate without including all of <exception>.

libstdc++-v3/ChangeLog:

* include/bits/atomic_timed_wait.h: Remove unused header.
* include/bits/c++config (std:__terminate): Define.
* include/bits/semaphore_base.h: Remove <exception> and use
__terminate instead of terminate.
* include/bits/std_thread.h: Likewise.
* libsupc++/eh_terminate.cc (std::terminate): Use qualified-id
to call __cxxabiv1::__terminate.
libstdc++-v3/include/bits/atomic_timed_wait.h
libstdc++-v3/include/bits/c++config
libstdc++-v3/include/bits/semaphore_base.h
libstdc++-v3/include/bits/std_thread.h
libstdc++-v3/libsupc++/eh_terminate.cc