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:
Colin Cross 2017-11-06 14:02:02 -08:00
parent 26f14509d1
commit ea3141d06d
7 changed files with 2 additions and 10 deletions

View file

@ -23,9 +23,6 @@ import (
var (
arm64Cflags = []string{
"-fdata-sections",
"-fno-short-enums",
// Help catch common 32/64-bit errors.
"-Werror=implicit-function-declaration",

View file

@ -28,9 +28,6 @@ var (
}
armCflags = []string{
"-fdata-sections",
"-fno-short-enums",
"-fno-builtin-sin",
"-fno-strict-volatile-bitfields",

View file

@ -56,6 +56,8 @@ var (
"-fdiagnostics-color",
"-ffunction-sections",
"-fdata-sections",
"-fno-short-enums",
"-funwind-tables",
"-fstack-protector-strong",
"-Wa,--noexecstack",

View file

@ -25,7 +25,6 @@ var (
"-fomit-frame-pointer",
"-funswitch-loops",
"-Umips",
"-fdata-sections",
// Help catch common 32/64-bit errors.
"-Werror=implicit-function-declaration",

View file

@ -25,7 +25,6 @@ var (
"-fomit-frame-pointer",
"-funswitch-loops",
"-Umips",
"-fdata-sections",
// TARGET_RELEASE_CFLAGS
"-fgcse-after-reload",

View file

@ -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.

View file

@ -24,7 +24,6 @@ var (
x86Cflags = []string{
"-finline-functions",
"-finline-limit=300",
"-fno-short-enums",
"-funswitch-loops",
}