File tree Expand file tree Collapse file tree 4 files changed +3
-6
lines changed Expand file tree Collapse file tree 4 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -15,10 +15,9 @@ namespace LIBC_NAMESPACE::internal {
15
15
// mark as no_stack_protector for x86 since TLS can be torn down before calling
16
16
// exit so that the stack protector canary cannot be loaded.
17
17
#ifdef LIBC_TARGET_ARCH_IS_X86
18
- __attribute__ (( no_stack_protector))
18
+ [[clang:: no_stack_protector]]
19
19
#endif
20
- __attribute__ ((noreturn)) void
21
- exit (int status) {
20
+ [[noreturn]] void exit (int status) {
22
21
for (;;) {
23
22
LIBC_NAMESPACE::syscall_impl<long >(SYS_exit_group, status);
24
23
LIBC_NAMESPACE::syscall_impl<long >(SYS_exit, status);
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ add_entrypoint_object(
49
49
HDRS
50
50
quick_exit.h
51
51
DEPENDS
52
- libc.src.errno.errno
53
52
libc.src.__support.OSUtil.osutil
54
53
)
55
54
Original file line number Diff line number Diff line change 9
9
#ifndef LLVM_LIBC_SRC_STDLIB_QUICK_EXIT_H
10
10
#define LLVM_LIBC_SRC_STDLIB_QUICK_EXIT_H
11
11
12
- #include < stdlib.h>
13
12
14
13
namespace LIBC_NAMESPACE {
15
14
Original file line number Diff line number Diff line change 13
13
TEST (LlvmLibcStdlib, quick_exit) {
14
14
EXPECT_EXITS ([] { LIBC_NAMESPACE::quick_exit (1 ); }, 1 );
15
15
EXPECT_EXITS ([] { LIBC_NAMESPACE::quick_exit (65 ); }, 65 );
16
- }
16
+ }
You can’t perform that action at this time.
0 commit comments