mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:17:44 +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
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;
|
return code_point_range;
|
||||||
}
|
}
|
||||||
|
|
||||||
// gcc-11, gcc-12 have a codegen bug on (at least) intel macOS 10.15, see #15449.
|
// gcc-11, gcc-12 have a codegen bug, see #15449.
|
||||||
#if defined(AK_COMPILER_GCC) && defined(AK_OS_MACOS)
|
#if defined(AK_COMPILER_GCC)
|
||||||
# pragma GCC push_options
|
# pragma GCC push_options
|
||||||
# pragma GCC optimize("O0")
|
# pragma GCC optimize("O0")
|
||||||
#endif
|
#endif
|
||||||
|
@ -691,7 +691,7 @@ static ErrorOr<void> parse_unicode_data(Core::Stream::BufferedFile& file, Unicod
|
||||||
|
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
#if defined(AK_COMPILER_GCC) && defined(AK_OS_MACOS)
|
#if defined(AK_COMPILER_GCC)
|
||||||
# pragma GCC pop_options
|
# pragma GCC pop_options
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue