1 From 7f0adaef68c5b0bb1c5eb9f5db5792b71b8b8beb Mon Sep 17 00:00:00 2001
2 From: Koen Kooi <koen@dominion.thruhere.net>
3 Date: Fri, 19 Mar 2010 10:44:09 +0100
4 Subject: [PATCH 6/6] Revert "ARM: SIMD: Try without any CFLAGS before forcing -mcpu="
6 This forces -marm that results in runtime SIGILL on thumb userspace
8 This reverts commit 18f0de452dc7e12e4cb544d761a626d5c6031663.
10 configure.ac | 20 +++++---------------
11 1 files changed, 5 insertions(+), 15 deletions(-)
13 diff --git a/configure.ac b/configure.ac
14 index fc3ee24..f84a4dc 100644
17 @@ -363,28 +363,18 @@ AM_CONDITIONAL(USE_VMX, test $have_vmx_intrinsics = yes)
19 dnl ===========================================================================
20 dnl Check for ARM SIMD instructions
22 +ARM_SIMD_CFLAGS="-mcpu=arm1136j-s"
25 AC_MSG_CHECKING(whether to use ARM SIMD assembler)
26 -# check with default CFLAGS in case the toolchain turns on a sufficiently recent -mcpu=
27 +xserver_save_CFLAGS=$CFLAGS
28 +CFLAGS="$ARM_SIMD_CFLAGS $CFLAGS"
31 asm("uqadd8 r1, r1, r2");
33 -}], have_arm_simd=yes,
34 - # check again with an explicit -mcpu= in case the toolchain defaults to an
35 - # older one; note that uqadd8 isn't available in Thumb mode on arm1136j-s
36 - # so we force ARM mode
37 - ARM_SIMD_CFLAGS="-mcpu=arm1136j-s -marm"
38 - xserver_save_CFLAGS=$CFLAGS
39 - CFLAGS="$ARM_SIMD_CFLAGS $CFLAGS"
42 - asm("uqadd8 r1, r1, r2");
44 - }], have_arm_simd=yes)
45 - CFLAGS=$xserver_save_CFLAGS)
46 +}], have_arm_simd=yes)
47 +CFLAGS=$xserver_save_CFLAGS
49 AC_ARG_ENABLE(arm-simd,
50 [AC_HELP_STRING([--disable-arm-simd],