https://git.reactos.org/?p=reactos.git;a=commitdiff;h=ef3ded6b973aa04dda0cb…
commit ef3ded6b973aa04dda0cbf8b5e3378e1257e6a5d
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Mon Apr 1 17:29:07 2019 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Mon Apr 1 17:32:07 2019 +0200
[CMAKE] Enable -fno-aggressive-loop-optimizations only for GCC 4.8(+)
Previously, it was also enabled for GCC > 4.7, ie for example for GCC 4.7.1
---
sdk/cmake/gcc.cmake | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sdk/cmake/gcc.cmake b/sdk/cmake/gcc.cmake
index bd29a0f98e..bf6cb1cc58 100644
--- a/sdk/cmake/gcc.cmake
+++ b/sdk/cmake/gcc.cmake
@@ -46,6 +46,8 @@ add_compile_flags("-nostdinc")
if(GCC_VERSION VERSION_GREATER 4.7)
add_compile_flags("-mstackrealign")
+endif()
+if(NOT GCC_VERSION VERSION_LESS 4.8)
add_compile_flags("-fno-aggressive-loop-optimizations")
endif()