From f190e394b3ba227028baed06ab5c89f1b193e0f4 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 6 Oct 2022 17:10:17 +0200 Subject: [PATCH] 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. --- .../Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp index 3aab2b4b96..a9c8a35f23 100644 --- a/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp +++ b/Meta/Lagom/Tools/CodeGenerators/LibUnicode/GenerateUnicodeData.cpp @@ -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 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