Remove gcc-specific optimizations
These flags were added for gcc, but are always stripped out when compiling for clang. Since gcc is barely used, removed them. Bug: 68855788 Bug: 68947919 Test: m checkbuild Change-Id: Iae2bda9808dd9499848ce145ccdf71c4c490b80e
This commit is contained in:
parent
ea3141d06d
commit
b37620f870
6 changed files with 1 additions and 38 deletions
|
@ -25,13 +25,6 @@ var (
|
|||
arm64Cflags = []string{
|
||||
// Help catch common 32/64-bit errors.
|
||||
"-Werror=implicit-function-declaration",
|
||||
|
||||
"-fno-strict-volatile-bitfields",
|
||||
|
||||
// TARGET_RELEASE_CFLAGS
|
||||
"-fgcse-after-reload",
|
||||
"-frerun-cse-after-loop",
|
||||
"-frename-registers",
|
||||
}
|
||||
|
||||
arm64Ldflags = []string{
|
||||
|
|
|
@ -28,14 +28,6 @@ var (
|
|||
}
|
||||
|
||||
armCflags = []string{
|
||||
"-fno-builtin-sin",
|
||||
"-fno-strict-volatile-bitfields",
|
||||
|
||||
// TARGET_RELEASE_CFLAGS
|
||||
"-fgcse-after-reload",
|
||||
"-frerun-cse-after-loop",
|
||||
"-frename-registers",
|
||||
|
||||
"-fomit-frame-pointer",
|
||||
}
|
||||
|
||||
|
@ -49,7 +41,6 @@ var (
|
|||
|
||||
armArmCflags = []string{
|
||||
"-fstrict-aliasing",
|
||||
"-funswitch-loops",
|
||||
}
|
||||
|
||||
armThumbCflags = []string{
|
||||
|
|
|
@ -22,17 +22,10 @@ import (
|
|||
|
||||
var (
|
||||
mips64Cflags = []string{
|
||||
"-fomit-frame-pointer",
|
||||
"-funswitch-loops",
|
||||
"-Umips",
|
||||
|
||||
// Help catch common 32/64-bit errors.
|
||||
"-Werror=implicit-function-declaration",
|
||||
|
||||
// TARGET_RELEASE_CFLAGS
|
||||
"-fgcse-after-reload",
|
||||
"-frerun-cse-after-loop",
|
||||
"-frename-registers",
|
||||
}
|
||||
|
||||
mips64ClangCflags = append(mips64Cflags, []string{
|
||||
|
|
|
@ -23,13 +23,7 @@ import (
|
|||
var (
|
||||
mipsCflags = []string{
|
||||
"-fomit-frame-pointer",
|
||||
"-funswitch-loops",
|
||||
"-Umips",
|
||||
|
||||
// TARGET_RELEASE_CFLAGS
|
||||
"-fgcse-after-reload",
|
||||
"-frerun-cse-after-loop",
|
||||
"-frename-registers",
|
||||
}
|
||||
|
||||
mipsClangCflags = append(mipsCflags, []string{
|
||||
|
|
|
@ -22,10 +22,6 @@ import (
|
|||
|
||||
var (
|
||||
x86_64Cflags = []string{
|
||||
"-finline-functions",
|
||||
"-finline-limit=300",
|
||||
"-funswitch-loops",
|
||||
|
||||
// Help catch common 32/64-bit errors.
|
||||
"-Werror=implicit-function-declaration",
|
||||
}
|
||||
|
|
|
@ -21,11 +21,7 @@ import (
|
|||
)
|
||||
|
||||
var (
|
||||
x86Cflags = []string{
|
||||
"-finline-functions",
|
||||
"-finline-limit=300",
|
||||
"-funswitch-loops",
|
||||
}
|
||||
x86Cflags = []string{}
|
||||
|
||||
x86ClangCflags = append(x86Cflags, []string{
|
||||
"-msse3",
|
||||
|
|
Loading…
Reference in a new issue