Move some flags to affect all devices
Move -fdata-sections and -fno-short-enums to global device flags. -fdata-sections was not previously set on x86[_64], -fno-short-enums was not previously set on mips[64]. Bug: 68855788 Test: m checkbuild Change-Id: I68e64888d5414fc022366eb2b6c5cd92c28a5542
This commit is contained in:
parent
26f14509d1
commit
ea3141d06d
7 changed files with 2 additions and 10 deletions
|
@ -23,9 +23,6 @@ import (
|
|||
|
||||
var (
|
||||
arm64Cflags = []string{
|
||||
"-fdata-sections",
|
||||
"-fno-short-enums",
|
||||
|
||||
// Help catch common 32/64-bit errors.
|
||||
"-Werror=implicit-function-declaration",
|
||||
|
||||
|
|
|
@ -28,9 +28,6 @@ var (
|
|||
}
|
||||
|
||||
armCflags = []string{
|
||||
"-fdata-sections",
|
||||
"-fno-short-enums",
|
||||
|
||||
"-fno-builtin-sin",
|
||||
"-fno-strict-volatile-bitfields",
|
||||
|
||||
|
|
|
@ -56,6 +56,8 @@ var (
|
|||
"-fdiagnostics-color",
|
||||
|
||||
"-ffunction-sections",
|
||||
"-fdata-sections",
|
||||
"-fno-short-enums",
|
||||
"-funwind-tables",
|
||||
"-fstack-protector-strong",
|
||||
"-Wa,--noexecstack",
|
||||
|
|
|
@ -25,7 +25,6 @@ var (
|
|||
"-fomit-frame-pointer",
|
||||
"-funswitch-loops",
|
||||
"-Umips",
|
||||
"-fdata-sections",
|
||||
|
||||
// Help catch common 32/64-bit errors.
|
||||
"-Werror=implicit-function-declaration",
|
||||
|
|
|
@ -25,7 +25,6 @@ var (
|
|||
"-fomit-frame-pointer",
|
||||
"-funswitch-loops",
|
||||
"-Umips",
|
||||
"-fdata-sections",
|
||||
|
||||
// TARGET_RELEASE_CFLAGS
|
||||
"-fgcse-after-reload",
|
||||
|
|
|
@ -24,7 +24,6 @@ var (
|
|||
x86_64Cflags = []string{
|
||||
"-finline-functions",
|
||||
"-finline-limit=300",
|
||||
"-fno-short-enums",
|
||||
"-funswitch-loops",
|
||||
|
||||
// Help catch common 32/64-bit errors.
|
||||
|
|
|
@ -24,7 +24,6 @@ var (
|
|||
x86Cflags = []string{
|
||||
"-finline-functions",
|
||||
"-finline-limit=300",
|
||||
"-fno-short-enums",
|
||||
"-funswitch-loops",
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue