summaryrefslogtreecommitdiff
path: root/src/common/common_funcs.h
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-10-12 18:23:25 -0400
committerGitHub <noreply@github.com>2023-10-12 18:23:25 -0400
commitd74fd9e2fe1f629d49adfac34c7e4b250e70ccb3 (patch)
tree3f8b09aab4ce247605f16485429aaf298911cccf /src/common/common_funcs.h
parentd011d3ff0ee9767d47c893010c1b224b6b619c25 (diff)
parent2212c9653d556e7ccb5c5a37407a51d33318d227 (diff)
Merge pull request #11763 from liamwhite/lto-noinline
kernel: mark TLS accessors as noinline for non-MSVC LTO
Diffstat (limited to 'src/common/common_funcs.h')
-rw-r--r--src/common/common_funcs.h4
1 files changed, 4 insertions, 0 deletions
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