]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
sh: Use -m2a-nofpu only
authorTom Rini <trini@konsulko.com>
Sat, 17 Feb 2018 22:30:38 +0000 (17:30 -0500)
committerMarek Vasut <marex@denx.de>
Wed, 21 Feb 2018 22:42:47 +0000 (23:42 +0100)
Based on reading over the GCC manual, passing both -m2a and -m2a-nofpu
are redundant, as -m2a-nofpu will provide functional code for both.  As
-m2a-nofpu functions with more toolchains and does what is expected,
switch.

Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
arch/sh/cpu/sh2/config.mk

index 12e202d539a01deba8a66e62be9f4adb78c861e0..a063e8361c986f4c600263d81af0f64901680b1c 100644 (file)
@@ -8,7 +8,7 @@
 ENDIANNESS += -EB
 
 ifdef CONFIG_CPU_SH2A
 ENDIANNESS += -EB
 
 ifdef CONFIG_CPU_SH2A
-PLATFORM_CPPFLAGS += -m2a -m2a-nofpu -mb
+PLATFORM_CPPFLAGS += -m2a-nofpu -mb
 else # SH2
 PLATFORM_CPPFLAGS += -m3e -mb
 endif
 else # SH2
 PLATFORM_CPPFLAGS += -m3e -mb
 endif