From f2bba3e2c1071e9965d9702da29ea4fecd7c9040 Mon Sep 17 00:00:00 2001 From: Ed Baker Date: Thu, 3 Oct 2019 09:47:13 -0700 Subject: gcc: Add tigerlake to corei7 mapping GCC 4.9 does not support new architecture flags such as skylake or tigerlake. Bug=b:141363149 TEST=Verify unit tests pass cd ${chromium_os}/src/third_party/toolchain-utils export PYTHONPATH=$(readlink -f .):$PYTHONPATH ./run_tests_for.py ./compiler_wrapper/* Change-Id: I63a74cb8fa6d2b40a9890a1e61f5be7917321975 Signed-off-by: Edward Baker Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1959943 Reviewed-by: Manoj Gupta --- compiler_wrapper/gcc_flags.go | 1 + compiler_wrapper/gcc_flags_test.go | 1 + 2 files changed, 2 insertions(+) (limited to 'compiler_wrapper') diff --git a/compiler_wrapper/gcc_flags.go b/compiler_wrapper/gcc_flags.go index 397bf82d..7141d14c 100644 --- a/compiler_wrapper/gcc_flags.go +++ b/compiler_wrapper/gcc_flags.go @@ -14,6 +14,7 @@ func processGccFlags(builder *commandBuilder) { "-march=goldmont": "-march=silvermont", "-march=goldmont-plus": "-march=silvermont", "-march=skylake": "-march=corei7", + "-march=tigerlake": "-march=corei7", "-march=tremont": "-march=silvermont", } diff --git a/compiler_wrapper/gcc_flags_test.go b/compiler_wrapper/gcc_flags_test.go index 8f8e9023..8de07a47 100644 --- a/compiler_wrapper/gcc_flags_test.go +++ b/compiler_wrapper/gcc_flags_test.go @@ -37,6 +37,7 @@ func TestConvertClangToGccFlags(t *testing.T) { {"-march=goldmont", "-march=silvermont"}, {"-march=goldmont-plus", "-march=silvermont"}, {"-march=skylake", "-march=corei7"}, + {"-march=tigerlake", "-march=corei7"}, {"-march=tremont", "-march=silvermont"}, } -- cgit v1.2.3