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 ( var (
arm64Cflags = []string{ arm64Cflags = []string{
"-fdata-sections",
"-fno-short-enums",
// Help catch common 32/64-bit errors. // Help catch common 32/64-bit errors.
"-Werror=implicit-function-declaration", "-Werror=implicit-function-declaration",

View File

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

View File

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

View File

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

View File

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

View File

@@ -24,7 +24,6 @@ var (
x86_64Cflags = []string{ x86_64Cflags = []string{
"-finline-functions", "-finline-functions",
"-finline-limit=300", "-finline-limit=300",
"-fno-short-enums",
"-funswitch-loops", "-funswitch-loops",
// Help catch common 32/64-bit errors. // Help catch common 32/64-bit errors.

View File

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