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:
@@ -25,13 +25,6 @@ var (
|
|||||||
arm64Cflags = []string{
|
arm64Cflags = []string{
|
||||||
// Help catch common 32/64-bit errors.
|
// Help catch common 32/64-bit errors.
|
||||||
"-Werror=implicit-function-declaration",
|
"-Werror=implicit-function-declaration",
|
||||||
|
|
||||||
"-fno-strict-volatile-bitfields",
|
|
||||||
|
|
||||||
// TARGET_RELEASE_CFLAGS
|
|
||||||
"-fgcse-after-reload",
|
|
||||||
"-frerun-cse-after-loop",
|
|
||||||
"-frename-registers",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
arm64Ldflags = []string{
|
arm64Ldflags = []string{
|
||||||
|
@@ -28,14 +28,6 @@ var (
|
|||||||
}
|
}
|
||||||
|
|
||||||
armCflags = []string{
|
armCflags = []string{
|
||||||
"-fno-builtin-sin",
|
|
||||||
"-fno-strict-volatile-bitfields",
|
|
||||||
|
|
||||||
// TARGET_RELEASE_CFLAGS
|
|
||||||
"-fgcse-after-reload",
|
|
||||||
"-frerun-cse-after-loop",
|
|
||||||
"-frename-registers",
|
|
||||||
|
|
||||||
"-fomit-frame-pointer",
|
"-fomit-frame-pointer",
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -49,7 +41,6 @@ var (
|
|||||||
|
|
||||||
armArmCflags = []string{
|
armArmCflags = []string{
|
||||||
"-fstrict-aliasing",
|
"-fstrict-aliasing",
|
||||||
"-funswitch-loops",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
armThumbCflags = []string{
|
armThumbCflags = []string{
|
||||||
|
@@ -22,17 +22,10 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
mips64Cflags = []string{
|
mips64Cflags = []string{
|
||||||
"-fomit-frame-pointer",
|
|
||||||
"-funswitch-loops",
|
|
||||||
"-Umips",
|
"-Umips",
|
||||||
|
|
||||||
// Help catch common 32/64-bit errors.
|
// Help catch common 32/64-bit errors.
|
||||||
"-Werror=implicit-function-declaration",
|
"-Werror=implicit-function-declaration",
|
||||||
|
|
||||||
// TARGET_RELEASE_CFLAGS
|
|
||||||
"-fgcse-after-reload",
|
|
||||||
"-frerun-cse-after-loop",
|
|
||||||
"-frename-registers",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mips64ClangCflags = append(mips64Cflags, []string{
|
mips64ClangCflags = append(mips64Cflags, []string{
|
||||||
|
@@ -23,13 +23,7 @@ import (
|
|||||||
var (
|
var (
|
||||||
mipsCflags = []string{
|
mipsCflags = []string{
|
||||||
"-fomit-frame-pointer",
|
"-fomit-frame-pointer",
|
||||||
"-funswitch-loops",
|
|
||||||
"-Umips",
|
"-Umips",
|
||||||
|
|
||||||
// TARGET_RELEASE_CFLAGS
|
|
||||||
"-fgcse-after-reload",
|
|
||||||
"-frerun-cse-after-loop",
|
|
||||||
"-frename-registers",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mipsClangCflags = append(mipsCflags, []string{
|
mipsClangCflags = append(mipsCflags, []string{
|
||||||
|
@@ -22,10 +22,6 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
x86_64Cflags = []string{
|
x86_64Cflags = []string{
|
||||||
"-finline-functions",
|
|
||||||
"-finline-limit=300",
|
|
||||||
"-funswitch-loops",
|
|
||||||
|
|
||||||
// Help catch common 32/64-bit errors.
|
// Help catch common 32/64-bit errors.
|
||||||
"-Werror=implicit-function-declaration",
|
"-Werror=implicit-function-declaration",
|
||||||
}
|
}
|
||||||
|
@@ -21,11 +21,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
x86Cflags = []string{
|
x86Cflags = []string{}
|
||||||
"-finline-functions",
|
|
||||||
"-finline-limit=300",
|
|
||||||
"-funswitch-loops",
|
|
||||||
}
|
|
||||||
|
|
||||||
x86ClangCflags = append(x86Cflags, []string{
|
x86ClangCflags = append(x86Cflags, []string{
|
||||||
"-msse3",
|
"-msse3",
|
||||||
|
Reference in New Issue
Block a user