Bug 802616 - Don't use software floating point math on ARMv6. r=glandium, a=lsblakk
authorBrad Lassey <blassey@mozilla.com>
Wed, 17 Oct 2012 11:40:55 -0400
changeset 109636 121213ddf98baa7722e567026462a90f182ab3ee
parent 109635 e3d6c1a5fa41f480cbdae101318ddfe978f8c889
child 109637 689486860540bee6b916a44b8eddb87104616c85
push id1585
push userryanvm@gmail.com
push dateTue, 23 Oct 2012 03:49:51 +0000
treeherdermozilla-beta@121213ddf98b [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersglandium, lsblakk
bugs802616
milestone17.0
Bug 802616 - Don't use software floating point math on ARMv6. r=glandium, a=lsblakk
build/autoconf/arch.m4
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)