Skip to content

Commit a55dfbb

Browse files
author
Christophe Lyon
committed
Merge config/ changes from GCC, to enable DFP on AArch64
2022-04-28 Christophe Lyon <[email protected]> config/ * dfp.m4 (enable_decimal_float): Enable BID for AArch64. libdecnumber/ * configure: Regenerate.
1 parent be38442 commit a55dfbb

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

config/dfp.m4

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

libdecnumber/configure

+2-1
Original file line numberDiff line numberDiff line change
@@ -4761,6 +4761,7 @@ Valid choices are 'yes', 'bid', 'dpd', and 'no'." "$LINENO" 5 ;;
47614761
else
47624762
47634763
case $target in
4764+
aarch64* | \
47644765
powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
47654766
i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
47664767
i?86*-*-mingw* | x86_64*-*-mingw* | \
@@ -4781,7 +4782,7 @@ fi
47814782
case x$enable_decimal_float in
47824783
xyes)
47834784
case $target in
4784-
i?86*-*-* | x86_64*-*-*)
4785+
aarch64* | i?86*-*-* | x86_64*-*-*)
47854786
enable_decimal_float=bid
47864787
;;
47874788
*)

0 commit comments

Comments
 (0)