Skip to content

Commit 435e5c1

Browse files
authored
[libc] restored original no_stack_protector syntax (#94005)
forward fix for #93620 -GCC doesn't recognize [[clang:: ']] prefix, so restored the original __attribute__ syntax
1 parent e79c080 commit 435e5c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libc/src/__support/OSUtil/linux/exit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ namespace LIBC_NAMESPACE::internal {
1515
// mark as no_stack_protector for x86 since TLS can be torn down before calling
1616
// exit so that the stack protector canary cannot be loaded.
1717
#ifdef LIBC_TARGET_ARCH_IS_X86
18-
[[clang::no_stack_protector]]
18+
__attribute__((no_stack_protector))
1919
#endif
20-
[[noreturn]] void
20+
__attribute__((noreturn)) void
2121
exit(int status) {
2222
for (;;) {
2323
LIBC_NAMESPACE::syscall_impl<long>(SYS_exit_group, status);

0 commit comments

Comments
 (0)