[v2] Enable decimal float on x86_64 kFreeBSD and Hurd

Message ID 20180704234700.2884-1-jrtc27@jrtc27.com
State New
Headers show
Series
  • [v2] Enable decimal float on x86_64 kFreeBSD and Hurd
Related show

Commit Message

Jessica Clarke July 4, 2018, 11:47 p.m.
config/
	* dfp.m4 (enable_decimal_float): Enable for x86_64*-*-gnu* to
	catch x86_64 kFreeBSD and Hurd.

gcc/
	* configure: Regenerate.

libdecnumber/
	* configure: Regenerate.

libgcc/
	* configure: Regenerate.
---

Hi,
Apologies; I accidentally sent an older version of this to the list, so
here's the correct version. Also, the motivation for this patch:

Decimal float has been enabled on GNU/Hurd for a while, by adding the
i?86*-*-gnu* pattern. However, this also matches i386 GNU/kFreeBSD
triples, such as i386-unknown-kfreebsd-gnu, yet since there is not
currently an x86_64 GNU/Hurd port there is no pattern for
x86_64*-*-gnu*, and so x86_64 GNU/kFreeBSD also does not match anything.
Thus, adding the x86_64 GNU/Hurd pattern both future-proofs the
configure script for a time when such a sytem exists, as well as making
x86_64 GNU/kFreeBSD match the behaviour of i386.

Regards,
James

 config/dfp.m4          | 2 +-
 gcc/configure          | 2 +-
 libdecnumber/configure | 2 +-
 libgcc/configure       | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

--
2.17.0

Patch

diff --git a/config/dfp.m4 b/config/dfp.m4
index 5b29089cec5..a137ddebf8c 100644
--- a/config/dfp.m4
+++ b/config/dfp.m4
@@ -21,7 +21,7 @@  Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;;
 [
   case $1 in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
-    i?86*-*-elfiamcu | i?86*-*-gnu* | \
+    i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
     i?86*-*-mingw* | x86_64*-*-mingw* | \
     i?86*-*-cygwin* | x86_64*-*-cygwin*)
       enable_decimal_float=yes
diff --git a/gcc/configure b/gcc/configure
index 60d373982fd..35564942bbf 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -7458,7 +7458,7 @@  else

   case $target in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
-    i?86*-*-elfiamcu | i?86*-*-gnu* | \
+    i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
     i?86*-*-mingw* | x86_64*-*-mingw* | \
     i?86*-*-cygwin* | x86_64*-*-cygwin*)
       enable_decimal_float=yes
diff --git a/libdecnumber/configure b/libdecnumber/configure
index 4cb732e80d4..b1588f4e884 100755
--- a/libdecnumber/configure
+++ b/libdecnumber/configure
@@ -4709,7 +4709,7 @@  else

   case $target in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
-    i?86*-*-elfiamcu | i?86*-*-gnu* | \
+    i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
     i?86*-*-mingw* | x86_64*-*-mingw* | \
     i?86*-*-cygwin* | x86_64*-*-cygwin*)
       enable_decimal_float=yes
diff --git a/libgcc/configure b/libgcc/configure
index b2f3f870844..f395474beac 100644
--- a/libgcc/configure
+++ b/libgcc/configure
@@ -4647,7 +4647,7 @@  else

   case $host in
     powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux* | s390*-*-linux* | \
-    i?86*-*-elfiamcu | i?86*-*-gnu* | \
+    i?86*-*-elfiamcu | i?86*-*-gnu* | x86_64*-*-gnu* | \
     i?86*-*-mingw* | x86_64*-*-mingw* | \
     i?86*-*-cygwin* | x86_64*-*-cygwin*)
       enable_decimal_float=yes