mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
LibUnicode: Let's use the GCC 11/12 workaround on all platforms
I seem to be getting some miscompiles on Linux as well, so let's make the hitherto macOS-specific workaround universal.
This commit is contained in:
parent
9d50191dca
commit
f190e394b3
Notes:
sideshowbarker
2024-07-17 06:16:16 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/f190e394b3
1 changed files with 3 additions and 3 deletions
|
@ -210,8 +210,8 @@ static CodePointRange parse_code_point_range(StringView list)
|
|||
return code_point_range;
|
||||
}
|
||||
|
||||
// gcc-11, gcc-12 have a codegen bug on (at least) intel macOS 10.15, see #15449.
|
||||
#if defined(AK_COMPILER_GCC) && defined(AK_OS_MACOS)
|
||||
// gcc-11, gcc-12 have a codegen bug, see #15449.
|
||||
#if defined(AK_COMPILER_GCC)
|
||||
# pragma GCC push_options
|
||||
# pragma GCC optimize("O0")
|
||||
#endif
|
||||
|
@ -691,7 +691,7 @@ static ErrorOr<void> parse_unicode_data(Core::Stream::BufferedFile& file, Unicod
|
|||
|
||||
return {};
|
||||
}
|
||||
#if defined(AK_COMPILER_GCC) && defined(AK_OS_MACOS)
|
||||
#if defined(AK_COMPILER_GCC)
|
||||
# pragma GCC pop_options
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue