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:
@@ -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",
|
||||||
|
|
||||||
|
@@ -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",
|
||||||
|
|
||||||
|
@@ -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",
|
||||||
|
@@ -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",
|
||||||
|
@@ -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",
|
||||||
|
@@ -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.
|
||||||
|
@@ -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",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user