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:
Colin Cross
2017-11-06 14:05:51 -08:00
parent ea3141d06d
commit b37620f870
6 changed files with 1 additions and 38 deletions

View File

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

View File

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

View File

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

View File

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

View File

@@ -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",
} }

View File

@@ -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",