Date: Fri, 2 Feb 2024 19:13:24 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: d56a6f0516a7 - main - stdlib.h: Partially revert c27a89971805 Message-ID: <202402021913.412JDO6m071251@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=d56a6f0516a748774673272f227c1862827b46fc commit d56a6f0516a748774673272f227c1862827b46fc Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2024-02-02 19:06:25 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2024-02-02 19:11:50 +0000 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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402021913.412JDO6m071251>