From: Christian Lamparter Date: Wed, 29 Jun 2011 21:53:34 +0000 (+0200) Subject: carl9170 firmware: add more compiler flags voodoo X-Git-Tag: 1.9.4~8 X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=7e4f4928397dbdcb0e2d4efa3c718e503d75dfae carl9170 firmware: add more compiler flags voodoo "Link Time Optimization (LTO) gives GCC the capability of dumping its internal representation (GIMPLE) to disk, so that all the different compilation units that make up a single executable can be optimized as a single module. This expands the scope of inter-procedural optimizations to encompass the whole program (or, rather, everything that is visible at link time)." Signed-off-by: Christian Lamparter --- diff --git a/carlfw/CMakeLists.txt b/carlfw/CMakeLists.txt index 70eb237..7940619 100644 --- a/carlfw/CMakeLists.txt +++ b/carlfw/CMakeLists.txt @@ -9,7 +9,7 @@ set(CARLFW_CFLAGS_WARNING "-W -Wall -Wextra -Wunreachable-code -Winline -Wlogica set(CARLFW_CFLAGS_EXTRA "-mbitops -std=gnu99 -ffunction-sections -Wframe-larger-than=128 -Werror") set(CARLFW_CFLAGS_DEF "-D__CARL9170FW__") if (CONFIG_CARL9170FW_AGGRESSIVE_CFLAGS) - set(CARLFW_CFLAGS_AGGRESSIVE "-fomit-frame-pointer -fsee -frename-registers -ftree-vectorize") + set(CARLFW_CFLAGS_AGGRESSIVE "-fomit-frame-pointer -fsee -frename-registers -ftree-vectorize -flto -fstrict-volatile-bitfields") endif (CONFIG_CARL9170FW_AGGRESSIVE_CFLAGS) include_directories (../include/linux ../include/shared ../include include)