bug 802616 - don't use software floating point math on ARMv6 r=glandium
authorBrad Lassey <blassey@mozilla.com>
Wed, 17 Oct 2012 11:40:55 -0400
changeset 110748 c4119fd2fb379dbedd41bbb39a0ea64cee2b504e
parent 110747 db4fd6efba172f8129ec9f48f0a534366dfcbdac
child 110749 c0b7b869931daba97d388f622738f8dc4c3591ef
push id93
push usernmatsakis@mozilla.com
push dateWed, 31 Oct 2012 21:26:57 +0000
reviewersglandium
bugs802616
milestone19.0a1
bug 802616 - don't use software floating point math on ARMv6 r=glandium
build/autoconf/arch.m4
dom/bindings/BindingGen.py
js/src/build/autoconf/arch.m4
--- a/build/autoconf/arch.m4
+++ b/build/autoconf/arch.m4
@@ -45,16 +45,20 @@ if test -z "$MOZ_ARCH"; then
         fi
         if test "$MOZ_PLATFORM_MAEMO" = 6; then
             MOZ_THUMB=yes
         fi
         ;;
     esac
 fi
 
+if test "$MOZ_ARCH" = "armv6" -a "$OS_TARGET" = "Android"; then
+   MOZ_FPU=vfp
+fi
+
 MOZ_ARG_WITH_STRING(thumb,
 [  --with-thumb[[=yes|no|toolchain-default]]]
 [                          Use Thumb instruction set (-mthumb)],
     if test -z "$GNU_CC"; then
         AC_MSG_ERROR([--with-thumb is not supported on non-GNU toolchains])
     fi
     MOZ_THUMB=$withval)
 
--- a/js/src/build/autoconf/arch.m4
+++ b/js/src/build/autoconf/arch.m4
@@ -45,16 +45,20 @@ if test -z "$MOZ_ARCH"; then
         fi
         if test "$MOZ_PLATFORM_MAEMO" = 6; then
             MOZ_THUMB=yes
         fi
         ;;
     esac
 fi
 
+if test "$MOZ_ARCH" = "armv6" -a "$OS_TARGET" = "Android"; then
+   MOZ_FPU=vfp
+fi
+
 MOZ_ARG_WITH_STRING(thumb,
 [  --with-thumb[[=yes|no|toolchain-default]]]
 [                          Use Thumb instruction set (-mthumb)],
     if test -z "$GNU_CC"; then
         AC_MSG_ERROR([--with-thumb is not supported on non-GNU toolchains])
     fi
     MOZ_THUMB=$withval)