arch/sh: use the floating-point string option in tests

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
This commit is contained in:
Yann E. MORIN" 2011-11-14 18:51:20 +01:00
parent 76b0fcc433
commit da09907c00

View File

@ -22,9 +22,14 @@ CT_DoArchTupleValues () {
case "${CT_ARCH_SH_VARIANT}" in case "${CT_ARCH_SH_VARIANT}" in
sh3) CT_ARCH_ARCH_CFLAG=-m3;; sh3) CT_ARCH_ARCH_CFLAG=-m3;;
sh4*) sh4*)
case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in # softfp is not possible for SuperH, no need to test for it.
y,) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}";; case "${CT_ARCH_FLOAT}" in
,y) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu";; hard)
CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}"
;;
soft)
CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu"
;;
esac esac
;; ;;
esac esac