[libc-commits] [libc] [libc][OSUtil] refactor quick_exit to be an object library everywhere (PR #85955)

Joseph Huber via libc-commits libc-commits at lists.llvm.org
Wed Mar 20 09:45:25 PDT 2024


================
@@ -22,14 +17,12 @@ namespace LIBC_NAMESPACE {
 #ifdef LIBC_TARGET_ARCH_IS_X86
 __attribute__((no_stack_protector))
 #endif
-LIBC_INLINE void
-quick_exit(int status) {
+__attribute__((noreturn))
+void quick_exit(int status) {
----------------
jhuber6 wrote:

I see, adding attributes is fairly trivial, but unlike the GPU build we can't rely on an up-to-date compiler so I guess we'll just need to keep it as-is.

https://github.com/llvm/llvm-project/pull/85955


More information about the libc-commits mailing list