348aeb
diff -Naur cmake-3.18.2.orig/Modules/Compiler/Absoft-Fortran.cmake cmake-3.18.2/Modules/Compiler/Absoft-Fortran.cmake
348aeb
--- cmake-3.18.2.orig/Modules/Compiler/Absoft-Fortran.cmake	2020-09-08 13:30:51.134086928 +0000
348aeb
+++ cmake-3.18.2/Modules/Compiler/Absoft-Fortran.cmake	2020-09-10 08:44:13.788373968 +0000
2576bb
@@ -1,7 +1,7 @@
2576bb
 string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
2576bb
 string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
2576bb
 string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " ")
2576bb
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
2576bb
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
2576bb
 string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
2576bb
 set(CMAKE_Fortran_MODDIR_FLAG "-YMOD_OUT_DIR=")
2576bb
 set(CMAKE_Fortran_MODPATH_FLAG "-p")
348aeb
diff -Naur cmake-3.18.2.orig/Modules/Compiler/G95-Fortran.cmake cmake-3.18.2/Modules/Compiler/G95-Fortran.cmake
348aeb
--- cmake-3.18.2.orig/Modules/Compiler/G95-Fortran.cmake	2020-09-08 13:30:51.136086957 +0000
348aeb
+++ cmake-3.18.2/Modules/Compiler/G95-Fortran.cmake	2020-09-10 08:44:22.991490916 +0000
2576bb
@@ -1,7 +1,7 @@
2576bb
 string(APPEND CMAKE_Fortran_FLAGS_INIT " ")
2576bb
 string(APPEND CMAKE_Fortran_FLAGS_DEBUG_INIT " -g")
2576bb
 string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os")
2576bb
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
2576bb
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
2576bb
 string(APPEND CMAKE_Fortran_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
2576bb
 set(CMAKE_Fortran_MODDIR_FLAG "-fmod=")
2576bb
 set(CMAKE_Fortran_VERBOSE_FLAG "-v")
348aeb
diff -Naur cmake-3.18.2.orig/Modules/Compiler/GNU-Fortran.cmake cmake-3.18.2/Modules/Compiler/GNU-Fortran.cmake
348aeb
--- cmake-3.18.2.orig/Modules/Compiler/GNU-Fortran.cmake	2020-09-08 13:30:51.137086972 +0000
348aeb
+++ cmake-3.18.2/Modules/Compiler/GNU-Fortran.cmake	2020-09-10 08:44:10.635333901 +0000
348aeb
@@ -19,7 +19,7 @@
2576bb
 
2576bb
 # No -DNDEBUG for Fortran.
2576bb
 string(APPEND CMAKE_Fortran_FLAGS_MINSIZEREL_INIT " -Os")
2576bb
-string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O3")
2576bb
+string(APPEND CMAKE_Fortran_FLAGS_RELEASE_INIT " -O2")
2576bb
 
2576bb
 # No -isystem for Fortran because it will not find .mod files.
2576bb
 unset(CMAKE_INCLUDE_SYSTEM_FLAG_Fortran)
348aeb
diff -Naur cmake-3.18.2.orig/Modules/Compiler/GNU.cmake cmake-3.18.2/Modules/Compiler/GNU.cmake
348aeb
--- cmake-3.18.2.orig/Modules/Compiler/GNU.cmake	2020-09-08 13:30:51.137086972 +0000
348aeb
+++ cmake-3.18.2/Modules/Compiler/GNU.cmake	2020-09-10 08:44:38.939693578 +0000
348aeb
@@ -56,7 +56,7 @@
2576bb
   string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
2576bb
   string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
2576bb
   string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG")
2576bb
-  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
2576bb
+  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2 -DNDEBUG")
2576bb
   string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
2576bb
   set(CMAKE_${lang}_CREATE_PREPROCESSED_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
2576bb
   set(CMAKE_${lang}_CREATE_ASSEMBLY_SOURCE "<CMAKE_${lang}_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
348aeb
diff -Naur cmake-3.18.2.orig/Modules/Compiler/Intel.cmake cmake-3.18.2/Modules/Compiler/Intel.cmake
348aeb
--- cmake-3.18.2.orig/Modules/Compiler/Intel.cmake	2020-09-08 13:30:51.138086986 +0000
348aeb
+++ cmake-3.18.2/Modules/Compiler/Intel.cmake	2020-09-10 08:44:25.749525964 +0000
348aeb
@@ -22,7 +22,7 @@
2576bb
     string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
2576bb
     string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g")
2576bb
     string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
2576bb
-    string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
2576bb
+    string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2")
2576bb
     string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g")
2576bb
 
348aeb
     set(CMAKE_${lang}_COMPILER_PREDEFINES_COMMAND "${CMAKE_${lang}_COMPILER}")
348aeb
diff -Naur cmake-3.18.2.orig/Modules/Compiler/NVIDIA-CUDA.cmake cmake-3.18.2/Modules/Compiler/NVIDIA-CUDA.cmake
348aeb
--- cmake-3.18.2.orig/Modules/Compiler/NVIDIA-CUDA.cmake	2020-09-08 13:30:51.138086986 +0000
348aeb
+++ cmake-3.18.2/Modules/Compiler/NVIDIA-CUDA.cmake	2020-09-10 08:44:19.672448740 +0000
348aeb
@@ -39,7 +39,7 @@
2576bb
   set(CMAKE_SHARED_LIBRARY_CUDA_FLAGS -fPIC)
2576bb
   string(APPEND CMAKE_CUDA_FLAGS_INIT " ")
2576bb
   string(APPEND CMAKE_CUDA_FLAGS_DEBUG_INIT " -g")
2576bb
-  string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
2576bb
+  string(APPEND CMAKE_CUDA_FLAGS_RELEASE_INIT " -O2 -DNDEBUG")
2576bb
   string(APPEND CMAKE_CUDA_FLAGS_MINSIZEREL_INIT " -O1 -DNDEBUG")
2576bb
   string(APPEND CMAKE_CUDA_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
2576bb
 endif()
348aeb
diff -Naur cmake-3.18.2.orig/Modules/Compiler/PGI.cmake cmake-3.18.2/Modules/Compiler/PGI.cmake
348aeb
--- cmake-3.18.2.orig/Modules/Compiler/PGI.cmake	2020-09-08 13:30:51.138086986 +0000
348aeb
+++ cmake-3.18.2/Modules/Compiler/PGI.cmake	2020-09-10 08:44:32.995618043 +0000
348aeb
@@ -18,7 +18,7 @@
2576bb
   string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
2576bb
   string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0")
2576bb
   string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -O2 -s")
2576bb
-  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -fast -O3")
2576bb
+  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -fast -O2")
2576bb
   string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -gopt")
2576bb
 
2576bb
   if(CMAKE_HOST_WIN32)
348aeb
diff -Naur cmake-3.18.2.orig/Modules/Compiler/PathScale.cmake cmake-3.18.2/Modules/Compiler/PathScale.cmake
348aeb
--- cmake-3.18.2.orig/Modules/Compiler/PathScale.cmake	2020-09-08 13:30:51.138086986 +0000
348aeb
+++ cmake-3.18.2/Modules/Compiler/PathScale.cmake	2020-09-10 08:44:16.715411163 +0000
348aeb
@@ -16,6 +16,6 @@
348aeb
   string(APPEND CMAKE_${lang}_FLAGS_INIT " ")
348aeb
   string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -O0")
348aeb
   string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os")
348aeb
-  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3")
348aeb
+  string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2")
348aeb
   string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -g -O2")
348aeb
 endmacro()
348aeb
diff -Naur cmake-3.18.2.orig/Modules/Platform/HP-UX-HP-CXX.cmake cmake-3.18.2/Modules/Platform/HP-UX-HP-CXX.cmake
348aeb
--- cmake-3.18.2.orig/Modules/Platform/HP-UX-HP-CXX.cmake	2020-09-08 13:30:51.182087632 +0000
348aeb
+++ cmake-3.18.2/Modules/Platform/HP-UX-HP-CXX.cmake	2020-09-10 08:44:00.226201627 +0000
348aeb
@@ -9,6 +9,6 @@
348aeb
   )
2576bb
 
2576bb
 string(APPEND CMAKE_CXX_FLAGS_DEBUG_INIT " -g")
348aeb
-string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " +O3 -DNDEBUG")
348aeb
+string(APPEND CMAKE_CXX_FLAGS_MINSIZEREL_INIT " +O2 -DNDEBUG")
348aeb
 string(APPEND CMAKE_CXX_FLAGS_RELEASE_INIT " +O2 -DNDEBUG")
348aeb
 string(APPEND CMAKE_CXX_FLAGS_RELWITHDEBINFO_INIT " -g")
348aeb
diff -Naur cmake-3.18.2.orig/Modules/Platform/Windows-Clang.cmake cmake-3.18.2/Modules/Platform/Windows-Clang.cmake
348aeb
--- cmake-3.18.2.orig/Modules/Platform/Windows-Clang.cmake	2020-09-08 13:30:51.185087676 +0000
348aeb
+++ cmake-3.18.2/Modules/Platform/Windows-Clang.cmake	2020-09-10 08:44:07.269291127 +0000
348aeb
@@ -79,7 +79,7 @@
2576bb
 
348aeb
     string(APPEND CMAKE_${lang}_FLAGS_DEBUG_INIT " -g -Xclang -gcodeview -O0 ${__ADDED_FLAGS_DEBUG}")
348aeb
     string(APPEND CMAKE_${lang}_FLAGS_MINSIZEREL_INIT " -Os -DNDEBUG ${__ADDED_FLAGS}")
348aeb
-    string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O3 -DNDEBUG ${__ADDED_FLAGS}")
348aeb
+    string(APPEND CMAKE_${lang}_FLAGS_RELEASE_INIT " -O2 -DNDEBUG ${__ADDED_FLAGS}")
348aeb
     string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG -Xclang -gcodeview ${__ADDED_FLAGS}")
348aeb
   endif()
348aeb
   set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")