added -fomit-frame-pointer flag for gcc builds
authorScott LaVarnway <slavarnway@google.com>
Fri, 15 Apr 2011 19:59:21 +0000 (15:59 -0400)
committerScott LaVarnway <slavarnway@google.com>
Fri, 15 Apr 2011 19:59:21 +0000 (15:59 -0400)
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

index 085170d..3324be3 100755 (executable)
@@ -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