summaryrefslogtreecommitdiff
path: root/Config.in
diff options
context:
space:
mode:
authorJoshua Henderson <joshua.henderson@microchip.com>2018-03-26 12:34:05 -0700
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>2018-03-26 22:19:11 +0200
commited6a7e18af8f4dfddee6e6b144f20dfaf6926315 (patch)
treed9c584030b27847ad4a7667db6ba070f85112295 /Config.in
parentef3304dabc1aef5c1035359211b1c3ca5d07eb3b (diff)
Config.in: add -Ofast option
-Ofast (introduced in GCC 4.6) It combines the existing optimization level -O3 with options that can affect standards compliance but result in better optimized code. For example, -Ofast enables -ffast-math. Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Diffstat (limited to 'Config.in')
-rw-r--r--Config.in11
1 files changed, 11 insertions, 0 deletions
diff --git a/Config.in b/Config.in
index 0002df5176..037ea2265b 100644
--- a/Config.in
+++ b/Config.in
@@ -527,6 +527,17 @@ config BR2_OPTIMIZE_S
-ftree-vect-loop-version
This is the default.
+config BR2_OPTIMIZE_FAST
+ bool "optimize for fast"
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
+ help
+ Optimize for fast. Disregard strict standards
+ compliance. -Ofast enables all -O3 optimizations. It also
+ enables optimizations that are not valid for all
+ standard-compliant programs. It turns on -ffast-math and the
+ Fortran-specific -fstack-arrays, unless -fmax-stack-var-size
+ is specified, and -fno-protect-parens.
+
endchoice
config BR2_GOOGLE_BREAKPAD_ENABLE