diff --git a/cmake/CompileFlags.cmake b/cmake/CompileFlags.cmake index 2f62a7b8b5..1f613e9377 100644 --- a/cmake/CompileFlags.cmake +++ b/cmake/CompileFlags.cmake @@ -80,6 +80,10 @@ macro(compile_flags) # We use 'ABCD' multichar for SaveLoad chunks identifiers -Wno-multichar + + # Prevent optimisation supposing enums are in a range specified by the standard + # For details, see http://gcc.gnu.org/PR43680 and PR#5246. + -fno-strict-enums ) # Ninja processes the output so the output from the compiler @@ -106,10 +110,6 @@ macro(compile_flags) # about its own optimized code in some places. "-fno-strict-overflow" - # Prevent optimisation supposing enums are in a range specified by the standard - # For details, see http://gcc.gnu.org/PR43680 - "-fno-tree-vrp" - # -flifetime-dse=2 (default since GCC 6) doesn't play # well with our custom pool item allocator "$<$:-flifetime-dse=1>"