From c91ab9eb6d46139bba52e541e00e6a80845f4d87 Mon Sep 17 00:00:00 2001 From: Stephen Hines Date: Thu, 20 Sep 2018 18:01:39 -0700 Subject: [PATCH] Switch to clang-r339409. This also changes over llvm-strip to use the -o flag, rather than relying on nonstandard (and no longer functional) positional arguments. Bug: http://b/111998531 Test: Multiple new builds. For googlers - http://go/clang-r339409-testing Change-Id: I8c82d06304af24a001e6552e36e2f540d8e364ce --- cc/config/clang.go | 12 ++++++++++++ cc/config/global.go | 4 ++-- scripts/strip.sh | 4 ++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/cc/config/clang.go b/cc/config/clang.go index 186d79057..5e22d6a24 100644 --- a/cc/config/clang.go +++ b/cc/config/clang.go @@ -178,6 +178,18 @@ func init() { // Disable c++98-specific warning since Android is not concerned with C++98 // compatibility. "-Wno-c++98-compat-extra-semi", + + // Disable this warning until we can fix all instances where it fails. + "-Wno-self-assign-overloaded", + + // Disable this warning until we can fix all instances where it fails. + "-Wno-constant-logical-operand", + + // Disable this warning because we don't care about behavior with older compilers. + "-Wno-return-std-move-in-c++11", + + // Disable this warning until we can fix all instances where it fails. + "-Wno-dangling-field", }, " ")) // Extra cflags for projects under external/ directory to disable warnings that are infeasible diff --git a/cc/config/global.go b/cc/config/global.go index 000aab644..ad63c978c 100644 --- a/cc/config/global.go +++ b/cc/config/global.go @@ -126,8 +126,8 @@ var ( // prebuilts/clang default settings. ClangDefaultBase = "prebuilts/clang/host" - ClangDefaultVersion = "clang-r328903" - ClangDefaultShortVersion = "7.0.2" + ClangDefaultVersion = "clang-r339409" + ClangDefaultShortVersion = "8.0.1" // Directories with warnings from Android.bp files. WarningAllowedProjects = []string{ diff --git a/scripts/strip.sh b/scripts/strip.sh index bfc66ee2d..29594dce9 100755 --- a/scripts/strip.sh +++ b/scripts/strip.sh @@ -54,7 +54,7 @@ do_strip() { # ${CROSS_COMPILE}strip --strip-all does not strip .ARM.attributes, # so we tell llvm-strip to keep it too. if [ ! -z "${use_llvm_strip}" ]; then - "${CLANG_BIN}/llvm-strip" --strip-all -keep=.ARM.attributes "${infile}" "${outfile}.tmp" + "${CLANG_BIN}/llvm-strip" --strip-all -keep=.ARM.attributes "${infile}" -o "${outfile}.tmp" else "${CROSS_COMPILE}strip" --strip-all "${infile}" -o "${outfile}.tmp" fi @@ -75,7 +75,7 @@ do_strip_keep_mini_debug_info() { rm -f "${outfile}.dynsyms" "${outfile}.funcsyms" "${outfile}.keep_symbols" "${outfile}.debug" "${outfile}.mini_debuginfo" "${outfile}.mini_debuginfo.xz" local fail= if [ ! -z "${use_llvm_strip}" ]; then - "${CLANG_BIN}/llvm-strip" --strip-all -keep=.ARM.attributes -remove-section=.comment "${infile}" "${outfile}.tmp" || fail=true + "${CLANG_BIN}/llvm-strip" --strip-all -keep=.ARM.attributes -remove-section=.comment "${infile}" -o "${outfile}.tmp" || fail=true else "${CROSS_COMPILE}strip" --strip-all -R .comment "${infile}" -o "${outfile}.tmp" || fail=true fi