From 7e4f4928397dbdcb0e2d4efa3c718e503d75dfae Mon Sep 17 00:00:00 2001 From: Christian Lamparter Date: Wed, 29 Jun 2011 23:53:34 +0200 Subject: [PATCH] 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 --- carlfw/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.31.1