--- libgcc/config.host.orig 2014-03-27 15:40:31 UTC +++ libgcc/config.host @@ -140,11 +140,15 @@ microblaze*-*-*) cpu_type=microblaze ;; mips*-*-*) - # All MIPS targets provide a full set of FP routines. cpu_type=mips tmake_file="mips/t-mips" if test "${libgcc_cv_mips_hard_float}" = yes; then - tmake_file="${tmake_file} t-hardfp-sfdf t-hardfp" + if test "${libgcc_cv_mips_single_float}" = yes; then + tmake_file="${tmake_file} t-hardfp-sf" + else + tmake_file="${tmake_file} t-hardfp-sfdf" + fi + tmake_file="${tmake_file} t-hardfp" else tmake_file="${tmake_file} t-softfp-sfdf" fi @@ -859,6 +863,14 @@ mips-wrs-vxworks) ;; mipstx39-*-elf* | mipstx39el-*-elf*) tmake_file="$tmake_file mips/t-crtstuff mips/t-mips16" + ;; +mips*-psp*) + tmake_file="${tmake_file} mips/t-allegrex" + target_cpu_default="MASK_SINGLE_FLOAT|MASK_DIVIDE_BREAKS" + tm_file="${tm_file} mips/psp.h" + extra_parts="$extra_parts crti.o crtn.o" + use_fixproto=yes + tm_defines="MIPS_ISA_DEFAULT=2 MIPS_CPU_STRING_DEFAULT=\\\"allegrex\\\" MIPS_ABI_DEFAULT=ABI_EABI" ;; mmix-knuth-mmixware) extra_parts="crti.o crtn.o crtbegin.o crtend.o"