From 9409e3805022bb99be1623535da13dcdc20fa0dd Mon Sep 17 00:00:00 2001
From: Scott LaVarnway <slavarnway@google.com>
Date: Fri, 15 Apr 2011 15:59:21 -0400
Subject: [PATCH] added -fomit-frame-pointer flag for gcc builds

According to the docs, this should have been enabled, but
the disassembled output shows otherwise.  This improved
the encode/decode performance.

Change-Id: I45ad7e6d299b89ac3166d7ef7da75b74994344c6
---
 build/make/configure.sh | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/build/make/configure.sh b/build/make/configure.sh
index 085170d65d..3324be36e6 100755
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -884,6 +884,8 @@ process_common_toolchain() {
                 link_with_cc=gcc
                 tune_cflags="-march="
             setup_gnu_toolchain
+                #for 32 bit x86 builds, -O3 did not turn on this flag
+                enabled optimizations && check_add_cflags -fomit-frame-pointer
                 ;;
         esac
 
-- 
GitLab