]> www.infradead.org Git - users/jedix/linux-maple.git/commit
x86: remove cc-option-yn test for -mtune=
authorNick Desaulniers <ndesaulniers@google.com>
Tue, 17 Aug 2021 00:21:07 +0000 (17:21 -0700)
committerMasahiro Yamada <masahiroy@kernel.org>
Thu, 26 Aug 2021 02:16:48 +0000 (11:16 +0900)
commitbe6b0d5022afe24952dda07c96f05ff71b77ee83
treed4d1bfbb566131e206216f4be1e7fce299448f33
parent1ac0aab260bccb9ace1f49ff1fff3bd50ad6f0db
x86: remove cc-option-yn test for -mtune=

As noted in the comment, -mtune= has been supported since GCC 3.4. The
minimum required version of GCC to build the kernel (as specified in
Documentation/process/changes.rst) is GCC 4.9.

tune is not immediately expanded. Instead it defines a macro that will
test via cc-option later values for -mtune=. But we can skip the test
whether to use -mtune= vs. -mcpu=.

Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
arch/x86/Makefile_32.cpu