3d8d4e829292af4e58c5fa415cfca70329fafdcc
[openembedded.git] /
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="
5
6 This forces -marm that results in runtime SIGILL on thumb userspace
7
8 This reverts commit 18f0de452dc7e12e4cb544d761a626d5c6031663.
9 ---
10  configure.ac |   20 +++++---------------
11  1 files changed, 5 insertions(+), 15 deletions(-)
12
13 diff --git a/configure.ac b/configure.ac
14 index fc3ee24..f84a4dc 100644
15 --- a/configure.ac
16 +++ b/configure.ac
17 @@ -363,28 +363,18 @@ AM_CONDITIONAL(USE_VMX, test $have_vmx_intrinsics = yes)
18  
19  dnl ===========================================================================
20  dnl Check for ARM SIMD instructions
21 -ARM_SIMD_CFLAGS=""
22 +ARM_SIMD_CFLAGS="-mcpu=arm1136j-s"
23  
24  have_arm_simd=no
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"
29  AC_COMPILE_IFELSE([
30  int main () {
31      asm("uqadd8 r1, r1, r2");
32      return 0;
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"
40 -    AC_COMPILE_IFELSE([
41 -    int main () {
42 -        asm("uqadd8 r1, r1, r2");
43 -        return 0;
44 -    }], have_arm_simd=yes)
45 -    CFLAGS=$xserver_save_CFLAGS)
46 +}], have_arm_simd=yes)
47 +CFLAGS=$xserver_save_CFLAGS
48  
49  AC_ARG_ENABLE(arm-simd,
50     [AC_HELP_STRING([--disable-arm-simd],
51 -- 
52 1.6.6.1
53