From 3e2bebf0aab1fb4d611ef2f26631571c87d72c45 Mon Sep 17 00:00:00 2001 From: apio Date: Sat, 15 Oct 2022 11:20:20 +0200 Subject: [PATCH] libc: Alias __lc_unreachable to __builtin_unreachable --- libs/libc/include/bits/macros.h | 1 + libs/libc/src/unistd.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/libs/libc/include/bits/macros.h b/libs/libc/include/bits/macros.h index 886b7019..02af796b 100644 --- a/libs/libc/include/bits/macros.h +++ b/libs/libc/include/bits/macros.h @@ -4,5 +4,6 @@ #define __lc_noreturn __attribute__((noreturn)) #define __lc_align(n) __attribute__((aligned(n))) #define __lc_deprecated(msg) __attribute__((deprecated(msg))) +#define __lc_unreachable __builtin_unreachable #endif \ No newline at end of file diff --git a/libs/libc/src/unistd.cpp b/libs/libc/src/unistd.cpp index cb5fbb31..eb21d7b7 100644 --- a/libs/libc/src/unistd.cpp +++ b/libs/libc/src/unistd.cpp @@ -101,7 +101,7 @@ extern "C" __lc_noreturn void _exit(int status) { syscall(SYS_exit, status); - __builtin_unreachable(); + __lc_unreachable(); } int dup(int fd)