carl9170 firmware: add more compiler flags voodoo
authorChristian Lamparter <chunkeey@googlemail.com>
Wed, 29 Jun 2011 21:53:34 +0000 (23:53 +0200)
committerChristian Lamparter <chunkeey@googlemail.com>
Wed, 29 Jun 2011 21:53:34 +0000 (23:53 +0200)
"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 <chunkeey@googlemail.com>
carlfw/CMakeLists.txt

index 70eb23784e5902395d7a3d6bac1abfb44c5f2e80..79406195731f6ba74eb54081727506c3d648b2ec 100644 (file)
@@ -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)