[libc-commits] [libc] [llvm] [libc] implement quick exit function (PR #93621)

via libc-commits libc-commits at lists.llvm.org
Fri May 31 11:56:39 PDT 2024


================
@@ -10,19 +10,18 @@
 #include "syscall.h"     // For internal syscall function.
 #include <sys/syscall.h> // For syscall numbers.
 
-namespace LIBC_NAMESPACE {
+namespace LIBC_NAMESPACE::internal {
 
 // mark as no_stack_protector for x86 since TLS can be torn down before calling
 // quick_exit so that the stack protector canary cannot be loaded.
 #ifdef LIBC_TARGET_ARCH_IS_X86
 __attribute__((no_stack_protector))
 #endif
 __attribute__((noreturn)) void
----------------
lntue wrote:

using `[[gnu::` instead should work for gcc: https://godbolt.org/z/6dbrc6cY6

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


More information about the libc-commits mailing list