reopen 897416
found 897416 7.3.0-24, 8.1.0-9
tags 897416 patch
thanks
Hi, the patch by Matthias was not enough to make gcc-7,8 to build
properly. Three configure files were needed to be recreated from their
corresponding configure.ac. Additionally, this patch use x86_64*-*-gnu*
to also cover the future implementation of 64bit Hurd.
Thanks!
# DP: Enable decimal float support on kfreebsd-amd64
--- a/src/gcc/configure.ac
+++ b/src/gcc/configure.ac
@@ -817,6 +817,7 @@ AC_ARG_ENABLE(__cxa_atexit,
[], [])
# Enable C extension for decimal float if target supports it.
+# touch the file, adding decimal support for kfreebsd-amd64 in config/dfp.m4
GCC_AC_ENABLE_DECIMAL_FLOAT([$target])
dfp=`if test $enable_decimal_float != no; then echo 1; else echo 0; fi`
--- a/src/libgcc/configure.ac
+++ b/src/libgcc/configure.ac
@@ -206,6 +206,7 @@ AC_CHECK_HEADERS(inttypes.h stdint.h std
AC_HEADER_STDC
# Check for decimal float support.
+# touch the file, adding decimal support for kfreebsd-amd64 in config/dfp.m4
AC_CACHE_CHECK([whether decimal floating point is supported], [libgcc_cv_dfp],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
#include <fenv.h>
--- a/src/libdecnumber/configure.ac 2017-01-08 17:43:30.000000000 +0100
+++ b/src/libdecnumber/configure.ac 2018-06-30 18:41:50.117324000 +0200
@@ -77,6 +77,7 @@
# Default decimal format
# If you change the defaults here, be sure to change them in the GCC directory also
+# touch the file, adding decimal support for kfreebsd-amd64 in config/dfp.m4
AC_MSG_CHECKING([for decimal floating point])
GCC_AC_ENABLE_DECIMAL_FLOAT([$target])
--- a/src/config/dfp.m4
+++ b/src/config/dfp.m4
@@ -21,7 +21,7 @@ Valid choices are 'yes', 'bid', 'dpd', a
[
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