diff options
| author | Dan Willemsen <dwillemsen@google.com> | 2015-09-11 17:41:10 -0700 |
|---|---|---|
| committer | Dan Willemsen <dwillemsen@google.com> | 2015-09-15 22:20:03 +0000 |
| commit | 3bf6b472299efa1a0e666010d68351bae949f826 (patch) | |
| tree | d2e7b1cd25e8a9b619b043e2e089488d2fa895ca /cc/clang.go | |
| parent | c3c755692407b0db44122eceefc0deda8bc664f3 (diff) | |
| download | build_soong-3bf6b472299efa1a0e666010d68351bae949f826.tar.gz build_soong-3bf6b472299efa1a0e666010d68351bae949f826.tar.bz2 build_soong-3bf6b472299efa1a0e666010d68351bae949f826.zip | |
Update flags to match make
Change-Id: I8ba24723d5b507fa178255c124b11356719700cb
Diffstat (limited to 'cc/clang.go')
| -rw-r--r-- | cc/clang.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cc/clang.go b/cc/clang.go index 347efbe0..92061f3c 100644 --- a/cc/clang.go +++ b/cc/clang.go @@ -10,10 +10,13 @@ var clangUnknownCflags = []string{ "-finline-functions", "-finline-limit=64", "-fno-canonical-system-headers", + "-Wno-clobbered", + "-fno-devirtualize", "-fno-tree-sra", "-fprefetch-loop-arrays", "-funswitch-loops", "-Wmaybe-uninitialized", + "-Wno-error=clobbered", "-Wno-error=maybe-uninitialized", "-Wno-error=unused-but-set-parameter", "-Wno-error=unused-but-set-variable", @@ -50,6 +53,7 @@ var clangUnknownCflags = []string{ // mips + mips64 "-msynci", + "-mno-synci", "-mno-fused-madd", // x86 + x86_64 @@ -70,6 +74,7 @@ func init() { // Disable overly aggressive warning for macros defined with a leading underscore // This happens in AndroidConfig.h, which is included nearly everywhere. + // TODO: can we remove this now? "-Wno-reserved-id-macro", // Disable overly aggressive warning for format strings. |
