From d56a6f0516a748774673272f227c1862827b46fc Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Fri, 2 Feb 2024 12:06:25 -0700 Subject: [PATCH] stdlib.h: Partially revert c27a89971805 quick_exit() can call other functions, and we don't guarantee it calls std::terminate should those other functions throw exceptions. And to make it do so has ABI complications for libc. Until that's sorted out, revert this noexcept (but leave a comment behind so people will find this commit message) Requested by: kib Sponsored by: Netflix --- include/stdlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/stdlib.h b/include/stdlib.h index f0687f01e6c7..7a934dfa306d 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -165,7 +165,7 @@ void * aligned_alloc(size_t, size_t) __malloc_like __alloc_align(1) __alloc_size(2); int at_quick_exit(void (*)(void)) __noexcept; _Noreturn void - quick_exit(int) __noexcept; + quick_exit(int) /* __noexcept -- not ready ABI issues? */; #endif /* __ISO_C_VISIBLE >= 2011 */ /* * Extensions made by POSIX relative to C.