diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-11-14 18:51:20 +0100 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2011-11-14 18:51:20 +0100 |
commit | da09907c00979c8d7219eface847e8dfc24bdafc (patch) | |
tree | 13df7def772168eb0e195cf30b2adfa911a59940 /scripts | |
parent | 76b0fcc433bc82a8a33e3d7acdb267a3094ee1d8 (diff) | |
download | crosstool-ng-da09907c00979c8d7219eface847e8dfc24bdafc.tar.gz crosstool-ng-da09907c00979c8d7219eface847e8dfc24bdafc.tar.bz2 crosstool-ng-da09907c00979c8d7219eface847e8dfc24bdafc.zip |
arch/sh: use the floating-point string option in tests
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/build/arch/sh.sh | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/scripts/build/arch/sh.sh b/scripts/build/arch/sh.sh index 3b651e2d..36779639 100644 --- a/scripts/build/arch/sh.sh +++ b/scripts/build/arch/sh.sh @@ -22,9 +22,14 @@ CT_DoArchTupleValues () { case "${CT_ARCH_SH_VARIANT}" in sh3) CT_ARCH_ARCH_CFLAG=-m3;; sh4*) - case "${CT_ARCH_FLOAT_HW},${CT_ARCH_FLOAT_SW}" in - y,) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}";; - ,y) CT_ARCH_ARCH_CFLAG="-m4${CT_ARCH_SH_VARIANT##sh?}-nofpu";; + # softfp is not possible for SuperH, no need to test for it. + case "${CT_ARCH_FLOAT}" in + 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 |