mips: Fix soft-float handling.

Add -msoft-float alongside clang arguments to specify ABI.
Specify ABI in asm files explicitly.
This trigers asm warning due to gcc failing to propagate -msoft-float
but it's tolerable.
This commit is contained in:
Vladimir Serbinenko 2015-02-23 22:33:28 +01:00
parent 7ea452a142
commit 6a4ecd276e
6 changed files with 16 additions and 3 deletions

View file

@ -695,7 +695,8 @@ if test x"$platform" != xemu ; then
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[]])],
[grub_cv_target_cc_soft_float="-mno-inline-float-divide -mno-inline-sqrt"], [])
fi
for cand in "-Xclang -msoft-float -Xclang -no-implicit-float" \
for cand in "-msoft-float -Xclang -msoft-float -Xclang -no-implicit-float" \
"-Xclang -msoft-float -Xclang -no-implicit-float" \
"-Xclang -msoft-float" "-msoft-float"; do
if test x"$grub_cv_target_cc_soft_float" != xno ; then
break
@ -711,7 +712,7 @@ if test x"$platform" != xemu ; then
fi
case x"$grub_cv_target_cc_soft_float" in
x"-Xclang"*)
x*"-Xclang"*)
# A trick so that clang doesn't see it on link stаge
TARGET_CPPFLAGS="$TARGET_CPPFLAGS $grub_cv_target_cc_soft_float"
;;