We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 346db6f + be32b0f commit 99499dcCopy full SHA for 99499dc
1 file changed
Source/cmake/WebKitCompilerFlags.cmake
@@ -190,6 +190,16 @@ if (COMPILER_IS_GCC_OR_CLANG)
190
WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-Wno-uninitialized)
191
endif ()
192
193
+ # Older GCC versions sometimes miscompile switches with that flag on.
194
+ # Observed in testMoveConditionallyFloatingPointSameArg (testmasm), turn it
195
+ # off throughout to avoid hard-to-diagnose bugs.
196
+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
197
+ # This and later versions don't seem to exhibit the issue.
198
+ if (${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS "14.0.1")
199
+ WEBKIT_PREPEND_GLOBAL_COMPILER_FLAGS(-fno-unswitch-loops)
200
+ endif ()
201
202
+
203
WEBKIT_PREPEND_GLOBAL_CXX_FLAGS(-Wno-noexcept-type)
204
205
# These GCC warnings produce too many false positives to be useful. We'll
0 commit comments