mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-05 01:10:24 +00:00
AK: Get rid of an unused NAKED macro
This went unused.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
6b7a8cb8c3
commit
4f8a4c196f
Notes:
github-actions[bot]
2025-11-07 10:29:53 +00:00
Author: https://github.com/cqundefine Commit: https://github.com/LadybirdBrowser/ladybird/commit/4f8a4c196f6 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6631 Reviewed-by: https://github.com/gmta ✅
@@ -190,19 +190,6 @@
|
||||
# define NO_SANITIZE_ADDRESS __attribute__((no_sanitize_address))
|
||||
#endif
|
||||
|
||||
#ifdef NAKED
|
||||
# undef NAKED
|
||||
#endif
|
||||
#if !ARCH(AARCH64) || defined(AK_COMPILER_CLANG)
|
||||
# define NAKED __attribute__((naked))
|
||||
#else
|
||||
// GCC doesn't support __attribute__((naked)) on AArch64. We use NAKED to mark functions
|
||||
// that are entirely written in inline assembly; having these be inlined would cause
|
||||
// various problems, such as explicit `ret` instructions accidentally exiting the caller
|
||||
// function or GCC discarding function arguments as they appear "dead".
|
||||
# define NAKED NEVER_INLINE
|
||||
#endif
|
||||
|
||||
#ifdef DISALLOW
|
||||
# undef DISALLOW
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user