MIPS: Loongson64: Clean up use of cc-ifversion
authorNathan Chancellor <nathan@kernel.org>
Tue, 25 Jan 2022 22:19:24 +0000 (15:19 -0700)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Mon, 7 Feb 2022 17:30:03 +0000 (18:30 +0100)
commit0e96ea5c3eb5904e5dc2f3d414e2aba361933b87
tree98dad0c1983a7eed2ee4e21b9db1948f5e5c63aa
parenta0b8cd5c223042efe764864b8dd9396ee127c763
MIPS: Loongson64: Clean up use of cc-ifversion

This Makefile checks that GCC is 4.9 or newer, which is redundant after
commit 76ae847497bc ("Documentation: raise minimum supported version of
GCC to 5.1"), so cc-option can be removed.

Clang does not support -march=loongson3a so it needs to continue to use
-march=mips64r2, which no longer needs cc-option because all supported
clang versions recognize this flag.

-march=loonson3a can be used unconditionally with GCC because the
minimum supported GCC version has been bumped past 4.9.0, which won't
have the bug mentioned in the comment. The _MIPS_ISA macro redefinition
can be removed at the same time for the same reason.

Suggested-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Suggested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <nathan@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/loongson64/Platform