Set -fomit-frame-pointer for all devices

-fomit-frame-pointer was only being set for arm and mips.  Since
we always use unwind tables and not frame pointers to unwind, and
since ART generated code does not use frame pointers, just turn
off frame pointers everywhere to gain an extra register.

Bug: 68951394
Test: m checkbuild
Change-Id: I9237d486a0c0215cdafd96d66712082df0eba785
This commit is contained in:
Colin Cross 2017-11-06 15:12:17 -08:00
parent d03553cf13
commit 20823f95e6
3 changed files with 2 additions and 4 deletions

View file

@ -27,9 +27,7 @@ var (
"-msoft-float",
}
armCflags = []string{
"-fomit-frame-pointer",
}
armCflags = []string{}
armCppflags = []string{}

View file

@ -62,6 +62,7 @@ var (
"-fstack-protector-strong",
"-Wa,--noexecstack",
"-D_FORTIFY_SOURCE=2",
"-fomit-frame-pointer",
"-Wstrict-aliasing=2",

View file

@ -22,7 +22,6 @@ import (
var (
mipsCflags = []string{
"-fomit-frame-pointer",
"-Umips",
}