MIPS: Loongson: Add GCC 4.4 support for Loongson2E
authorWu Zhangjin <wuzhangjin@gmail.com>
Thu, 2 Jul 2009 15:27:41 +0000 (23:27 +0800)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Sep 2009 18:07:47 +0000 (20:07 +0200)
commit3702bba5eb4f7a0c89107089af6fd9bc2966b65a
treeab2a7c8a0a88d7fb2ade98d42d24655370537640
parent3209e70e5ed1821be8d9b87fe9e8bd6cffa4b4c7
MIPS: Loongson: Add GCC 4.4 support for Loongson2E

Because only gcc >=4.4 have loongson-specific support, we need to choose
the suitable -march argument for gcc <= 4.3 and gcc >= 4.4, and here, we
use -march=loongson2e for loongson2e.

Thanks goes to Arnaud Patard <apatard@mandriva.com> for suggestion of
using cc-options(Documentation/kbuild/makefiles.txt). and thanks Zhang
Le for introducing the new CPU_LOONGSON2E kernel option.

NOTE: -mtune option is not need if -march and -mtune use the same value.

Signed-off-by: Zhang Le <r0bertz@gentoo.org>
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/Kconfig
arch/mips/Makefile
arch/mips/loongson/Kconfig