mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
libcxxrt: Update to upstream 6f2fdfebcd62
Interesting fixes:
3cbfe5a556fe Avoid noreturn warning on terminate()
(cherry picked from commit 2dccd21949f26b1bdf5e7cf258b760fffd3bf259)
(cherry picked from commit d9901a23bd)
Approved by: re (cperciva)
This commit is contained in:
parent
bc01ae40e4
commit
d0dcee46d9
1 changed files with 16 additions and 10 deletions
|
|
@ -237,7 +237,7 @@ static_assert(offsetof(__cxa_dependent_exception, unwindHeader) ==
|
|||
|
||||
namespace std
|
||||
{
|
||||
void unexpected();
|
||||
[[noreturn]] void unexpected();
|
||||
class exception
|
||||
{
|
||||
public:
|
||||
|
|
@ -1530,28 +1530,34 @@ namespace std
|
|||
if (0 != info && 0 != info->terminateHandler)
|
||||
{
|
||||
info->terminateHandler();
|
||||
// Should not be reached - a terminate handler is not expected to
|
||||
// return.
|
||||
abort();
|
||||
}
|
||||
terminateHandler.load()();
|
||||
else
|
||||
{
|
||||
terminateHandler.load()();
|
||||
}
|
||||
// Should not be reached - a terminate handler is not expected
|
||||
// to return.
|
||||
abort();
|
||||
}
|
||||
/**
|
||||
* Called when an unexpected exception is encountered (i.e. an exception
|
||||
* violates an exception specification). This calls abort() unless a
|
||||
* custom handler has been set..
|
||||
*/
|
||||
void unexpected()
|
||||
[[noreturn]] void unexpected()
|
||||
{
|
||||
static __cxa_thread_info *info = thread_info();
|
||||
if (0 != info && 0 != info->unexpectedHandler)
|
||||
{
|
||||
info->unexpectedHandler();
|
||||
// Should not be reached - a terminate handler is not expected to
|
||||
// return.
|
||||
abort();
|
||||
}
|
||||
unexpectedHandler.load()();
|
||||
else
|
||||
{
|
||||
unexpectedHandler.load()();
|
||||
}
|
||||
// Should not be reached - a unexpected handler is not expected
|
||||
// to return.
|
||||
abort();
|
||||
}
|
||||
/**
|
||||
* Returns whether there are any exceptions currently being thrown that
|
||||
|
|
|
|||
Loading…
Reference in a new issue