Merge config/ changes from GCC, to enable DFP on AArch64

2022-04-28  Christophe Lyon  <christophe.lyon@arm.com>

	config/
	* dfp.m4 (enable_decimal_float): Enable BID for AArch64.

	libdecnumber/
	* configure: Regenerate.
This commit is contained in:
Christophe Lyon 2022-04-27 16:32:42 +01:00
parent be38442dda
commit a55dfbb9ab
2 changed files with 22 additions and 2 deletions

View File

@ -1,3 +1,21 @@
# Copyright (C) 2010-2022 Free Software Foundation, Inc.
# This file is part of GCC.
# GCC is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free
# Software Foundation; either version 3, or (at your option) any
# later version.
# GCC is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
# You should have received a copy of the GNU General Public License
# along with GCC; see the file COPYING3. If not see
# <http://www.gnu.org/licenses/>.
dnl @synopsis GCC_AC_ENABLE_DECIMAL_FLOAT([target triplet]) dnl @synopsis GCC_AC_ENABLE_DECIMAL_FLOAT([target triplet])
dnl dnl
dnl Enable C extension for decimal float if target supports it. dnl Enable C extension for decimal float if target supports it.
@ -20,6 +38,7 @@ Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;;
], ],
[ [
case $1 in case $1 in
aarch64* | \
powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
i?86*-*-mingw* | x86_64*-*-mingw* | \ i?86*-*-mingw* | x86_64*-*-mingw* | \
@ -37,7 +56,7 @@ Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;;
case x$enable_decimal_float in case x$enable_decimal_float in
xyes) xyes)
case $1 in case $1 in
i?86*-*-* | x86_64*-*-*) aarch64* | i?86*-*-* | x86_64*-*-*)
enable_decimal_float=bid enable_decimal_float=bid
;; ;;
*) *)

View File

@ -4761,6 +4761,7 @@ Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
else else
case $target in case $target in
aarch64* | \
powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \ powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \ i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
i?86*-*-mingw* | x86_64*-*-mingw* | \ i?86*-*-mingw* | x86_64*-*-mingw* | \
@ -4781,7 +4782,7 @@ fi
case x$enable_decimal_float in case x$enable_decimal_float in
xyes) xyes)
case $target in case $target in
i?86*-*-* | x86_64*-*-*) aarch64* | i?86*-*-* | x86_64*-*-*)
enable_decimal_float=bid enable_decimal_float=bid
;; ;;
*) *)