From 5ff845927b3559d29f0b9d751e1ac6106201d4c9 Mon Sep 17 00:00:00 2001 From: Martin Kelly Date: Wed, 18 May 2016 14:17:55 -0700 Subject: 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 Acked-by: Arnout Vandecappelle (Essensium/Mind) Signed-off-by: Thomas Petazzoni --- Config.in | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Config.in') diff --git a/Config.in b/Config.in index b8e5d18a6..4b48c0097 100644 --- a/Config.in +++ b/Config.in @@ -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 -- cgit v1.2.3