Use -mcpu instead of -march for ARM SIMD runtime autodetection
authorSiarhei Siamashka <siarhei.siamashka@nokia.com>
Tue, 23 Jun 2009 22:30:34 +0000 (01:30 +0300)
committerJeff Muizelaar <jmuizelaar@mozilla.com>
Thu, 25 Jun 2009 15:07:37 +0000 (08:07 -0700)
Option -mcpu has higher priority than -march with the current versions
of gcc and that's why it is better to use. There is no particular
reason why 'arm1136j-s' is used in this patch, it could be any armv6
compatible core.

configure.ac

index 8ed9149..b5ea19c 100644 (file)
@@ -327,7 +327,7 @@ AM_CONDITIONAL(USE_VMX, test $have_vmx_intrinsics = yes)
 
 dnl ===========================================================================
 dnl Check for ARM SIMD instructions
-ARM_SIMD_CFLAGS="-march=armv6"
+ARM_SIMD_CFLAGS="-mcpu=arm1136j-s"
 
 have_arm_simd=no
 AC_MSG_CHECKING(whether to use ARM SIMD assembler)