mirror of
https://github.com/torvalds/linux.git
synced 2026-11-26 16:33:17 +00:00
GCC 9.x automatically enables support for Loongson MMI instructions when using some -march= flags, and then errors out when -msoft-float is specified with: cc1: error: ‘-mloongson-mmi’ must be used with ‘-mhard-float’ The kernel shouldn't be using these MMI instructions anyway, just as it doesn't use floating point instructions. Explicitly disable them in order to fix the build with GCC 9.x. Signed-off-by: Paul Burton <[email protected]> Fixes:3702bba5eb("MIPS: Loongson: Add GCC 4.4 support for Loongson2E") Fixes:6f7a251a25("MIPS: Loongson: Add basic Loongson 2F support") Fixes:5188129b8c("MIPS: Loongson-3: Improve -march option and move it to Platform") Cc: Huacai Chen <[email protected]> Cc: Jiaxun Yang <[email protected]> Cc: [email protected] # v2.6.32+ Cc: [email protected]