diff options
author | Martin Kelly <martin@surround.io> | 2016-05-18 14:17:55 -0700 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2016-05-24 23:17:52 +0200 |
commit | 5ff845927b3559d29f0b9d751e1ac6106201d4c9 (patch) | |
tree | f78097044f5a38c0f30a873a88075e8d88c91cc7 /Config.in | |
parent | 86409e1a4bc94ef6754a31b48561b72fad352f36 (diff) |
Config.in: add -Og option
-Og (introduced in GCC 4.8) lets you optimize for debugging experience,
which can be useful for when you want optimized code that is nonetheless
debuggable.
Signed-off-by: Martin Kelly <martin@surround.io>
Acked-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'Config.in')
-rw-r--r-- | Config.in | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -512,6 +512,16 @@ config BR2_OPTIMIZE_3 and also turns on the -finline-functions, -funswitch-loops and -fgcse-after-reload options. +config BR2_OPTIMIZE_G + bool "optimize for debugging" + depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 + help + Optimize for debugging. This enables optimizations that do not + interfere with debugging. It should be the optimization level of + choice for the standard edit-compile-debug cycle, offering a + reasonable level of optimization while maintaining fast compilation + and a good debugging experience. + config BR2_OPTIMIZE_S bool "optimize for size" help |