]> git.ipfire.org Git - thirdparty/glibc.git/blame - ports/sysdeps/arm/preconfigure
Remove Prefer_SSE_for_memop on x64
[thirdparty/glibc.git] / ports / sysdeps / arm / preconfigure
CommitLineData
39f0b3ca 1case "$machine" in
f10eff58
DJ
2arm*)
3 base_machine=arm
4 case $config_os in
58a9f49b 5 linux-gnueabi*)
b21cb02f
DAG
6 # Lets ask the compiler which ARM family we've got
7 # Unfortunately it doesn't define any flags for implementations
8 # that you might pass to -mcpu or -mtune
9 # Note if you add patterns here you must ensure that
1f60a18d 10 # an appropriate directory exists in sysdeps/arm
b21cb02f
DAG
11 archcppflag=`echo "" |
12 $CC $CFLAGS $CPPFLAGS -E -dM - |
60812ba0 13 grep '__ARM_ARCH_[0-9].*__' |
b21cb02f
DAG
14 sed -e 's/^#define //' -e 's/ .*//'`
15
16 case x$archcppflag in
17 x__ARM_ARCH_[89]*__)
18 machine=armv7
19 echo "Found compiler is configured for something newer than v7 - using v7"
20 ;;
21
22 x__ARM_ARCH_7A__)
23 machine=armv7
24 echo "Found compiler is configured for $machine"
25 ;;
26
27 x__ARM_ARCH_6T2__)
28 machine=armv6t2
29 echo "Found compiler is configured for $machine"
30 ;;
8a0018d6
RH
31 x__ARM_ARCH_6*__)
32 machine=armv6
33 echo "Found compiler is configured for $machine"
34 ;;
b21cb02f
DAG
35 *)
36 machine=arm
37 echo 2>&1 "arm/preconfigure: Did not find ARM architecture type; using default"
38 ;;
39 esac
40
1f60a18d 41 machine=arm/$machine
82515b86
AS
42 if [ "${CFLAGS+set}" != "set" ]; then
43 CFLAGS="-g -O2"
44 fi
45 CFLAGS="$CFLAGS -fno-unwind-tables"
f10eff58 46 ;;
bea9b193 47 linux*)
5155e70c
JM
48 echo "Old ABI no longer supported" 2>&1
49 exit 1
f10eff58
DJ
50 ;;
51 esac
52 ;;
39f0b3ca 53esac