# HG changeset patch # User Alexis Jeandet # Date 2018-10-02 07:36:56 # Node ID 0c445dc7a949c666f3df4b355815e882607b0d77 # Parent 5198ca72be3c47df8dc1b98813b67971f46b1d0b Switched to O3 with no inlining optim level for debug builds Debug builds are mostly used for gcov while it seems a bad idea(-O3), with O0 the FSW uses more than 100% CPU in normal mode so the treadoff is to switch to O3 without inlining, this preserves the 1 to 1 relation between code and gcov counters. diff --git a/sparc/sparc-rtems.cmake b/sparc/sparc-rtems.cmake --- a/sparc/sparc-rtems.cmake +++ b/sparc/sparc-rtems.cmake @@ -11,7 +11,7 @@ option(Coverage "Enables code coverage" set(CMAKE_C_FLAGS_RELEASE "-O3") -set(CMAKE_C_FLAGS_DEBUG "-O0") +set(CMAKE_C_FLAGS_DEBUG "-O3 -fno-inline") if(fix-b2bst)