]> git.ipfire.org Git - thirdparty/gcc.git/blame - config/dfp.m4
neon-schedgen.ml (allCores): Add support for Cortex-A9.
[thirdparty/gcc.git] / config / dfp.m4
CommitLineData
3c39bca6
AK
1dnl @synopsis GCC_AC_ENABLE_DECIMAL_FLOAT([target triplet])
2dnl
3dnl Enable C extension for decimal float if target supports it.
4dnl
5dnl @author Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
6
7AC_DEFUN([GCC_AC_ENABLE_DECIMAL_FLOAT],
8[
9AC_ARG_ENABLE(decimal-float,
10[ --enable-decimal-float={no,yes,bid,dpd}
11 enable decimal float extension to C. Selecting 'bid'
12 or 'dpd' choses which decimal floating point format
13 to use],
14[
15 case $enable_decimal_float in
cc0ae0ca 16 yes | no | bid | dpd) default_decimal_float=$enable_decimal_float ;;
3c39bca6
AK
17 *) AC_MSG_ERROR(['$enable_decimal_float' is an invalid value for --enable-decimal-float.
18Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;;
19 esac
20],
21[
22 case $1 in
23 powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux*)
24 enable_decimal_float=yes
25 ;;
26 *)
84f47d20 27 AC_MSG_WARN([decimal float is not supported for this target, ignored])
3c39bca6
AK
28 enable_decimal_float=no
29 ;;
30 esac
31])
32
33# x86's use BID format instead of DPD
34case x$enable_decimal_float in
35 xyes)
36 case $1 in
37 i?86*-*-* | x86_64*-*-*)
38 enable_decimal_float=bid
39 ;;
40 *)
41 enable_decimal_float=dpd
42 ;;
43 esac
cc0ae0ca 44 default_decimal_float=$enable_decimal_float
3c39bca6
AK
45 ;;
46 xno)
47 # ENABLE_DECIMAL_FLOAT is set to 0. But we have to have proper
48 # dependency on libdecnumber.
cc0ae0ca 49 default_decimal_float=dpd
3c39bca6
AK
50 ;;
51esac
52AC_SUBST(enable_decimal_float)
53
cc0ae0ca 54])