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:
parent
d03553cf13
commit
20823f95e6
3 changed files with 2 additions and 4 deletions
|
@ -27,9 +27,7 @@ var (
|
|||
"-msoft-float",
|
||||
}
|
||||
|
||||
armCflags = []string{
|
||||
"-fomit-frame-pointer",
|
||||
}
|
||||
armCflags = []string{}
|
||||
|
||||
armCppflags = []string{}
|
||||
|
||||
|
|
|
@ -62,6 +62,7 @@ var (
|
|||
"-fstack-protector-strong",
|
||||
"-Wa,--noexecstack",
|
||||
"-D_FORTIFY_SOURCE=2",
|
||||
"-fomit-frame-pointer",
|
||||
|
||||
"-Wstrict-aliasing=2",
|
||||
|
||||
|
|
|
@ -22,7 +22,6 @@ import (
|
|||
|
||||
var (
|
||||
mipsCflags = []string{
|
||||
"-fomit-frame-pointer",
|
||||
"-Umips",
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue