From 2212c9653d556e7ccb5c5a37407a51d33318d227 Mon Sep 17 00:00:00 2001 From: Liam Date: Thu, 12 Oct 2023 09:16:22 -0400 Subject: kernel: mark TLS accessors as noinline for non-MSVC LTO --- src/common/common_funcs.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/common/common_funcs.h') diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index 0dad9338a..47d028d48 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h @@ -39,8 +39,12 @@ #define Crash() exit(1) #endif +#define LTO_NOINLINE __attribute__((noinline)) + #else // _MSC_VER +#define LTO_NOINLINE + // Locale Cross-Compatibility #define locale_t _locale_t -- cgit v1.2.3