arch/mips: add option for toolchains supporting -mnan
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Fri, 21 Jul 2017 17:06:31 +0000 (18:06 +0100)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 21 Jul 2017 20:48:51 +0000 (22:48 +0200)
commit0af741187f6e273664da202936e79082071866f8
tree6f89efc85cfba8d0b9234f7808fe009b7a79b21e
parent1ddd41f231861bb28cfd56be55f7647fde3dd93d
arch/mips: add option for toolchains supporting -mnan

-mnan option was added in gcc-4.9.0 so make sure that users cannot
select the NaN mode when using toolchains that have a gcc older
than 4.9.0, and also make sure that the -mnan option is not passed at
all to the toolchain-wrapper and target cflags.

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
arch/Config.in.mips
toolchain/toolchain-common.in
toolchain/toolchain-external/pkg-toolchain-external.mk