diff options
| author | 2023-10-12 18:23:25 -0400 | |
|---|---|---|
| committer | 2023-10-12 18:23:25 -0400 | |
| commit | d74fd9e2fe1f629d49adfac34c7e4b250e70ccb3 (patch) | |
| tree | 3f8b09aab4ce247605f16485429aaf298911cccf /src/common | |
| parent | Merge pull request #11765 from german77/cap_mac (diff) | |
| parent | kernel: mark TLS accessors as noinline for non-MSVC LTO (diff) | |
| download | yuzu-d74fd9e2fe1f629d49adfac34c7e4b250e70ccb3.tar.gz yuzu-d74fd9e2fe1f629d49adfac34c7e4b250e70ccb3.tar.xz yuzu-d74fd9e2fe1f629d49adfac34c7e4b250e70ccb3.zip | |
Merge pull request #11763 from liamwhite/lto-noinline
kernel: mark TLS accessors as noinline for non-MSVC LTO
Diffstat (limited to 'src/common')
| -rw-r--r-- | src/common/common_funcs.h | 4 |
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 @@ | |||
| 39 | #define Crash() exit(1) | 39 | #define Crash() exit(1) |
| 40 | #endif | 40 | #endif |
| 41 | 41 | ||
| 42 | #define LTO_NOINLINE __attribute__((noinline)) | ||
| 43 | |||
| 42 | #else // _MSC_VER | 44 | #else // _MSC_VER |
| 43 | 45 | ||
| 46 | #define LTO_NOINLINE | ||
| 47 | |||
| 44 | // Locale Cross-Compatibility | 48 | // Locale Cross-Compatibility |
| 45 | #define locale_t _locale_t | 49 | #define locale_t _locale_t |
| 46 | 50 | ||