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:
Andreas Kling 2022-10-06 17:10:17 +02:00
parent 9d50191dca
commit f190e394b3
Notes: sideshowbarker 2024-07-17 06:16:16 +09:00

View file

@ -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