0010-ldbl128-config.patch (1989B)
1From 47467f3ab0fb2f2fcede81060fe8bb339d0909eb Mon Sep 17 00:00:00 2001 2From: Szabolcs Nagy <nsz@port70.net> 3Date: Wed, 28 Feb 2018 00:54:05 +0000 4Subject: [PATCH 10/12] ldbl128 config 5 6--- 7 gcc/configure | 13 +++++++++++++ 8 gcc/configure.ac | 16 ++++++++++++++-- 9 2 files changed, 27 insertions(+), 2 deletions(-) 10 11diff --git gcc/configure gcc/configure 12index 6121e163259..07ff8597d48 100755 13--- gcc/configure 14+++ gcc/configure 15@@ -29309,6 +29309,15 @@ if test "${with_long_double_128+set}" = set; then : 16 withval=$with_long_double_128; gcc_cv_target_ldbl128="$with_long_double_128" 17 else 18 19+ case "$target" in 20+ s390*-*-linux-musl*) 21+ gcc_cv_target_ldbl128=yes 22+ ;; 23+ powerpc*-*-linux-musl*) 24+ gcc_cv_target_ldbl128=no 25+ ;; 26+ *) 27+ 28 if test $glibc_version_major -gt 2 \ 29 || ( test $glibc_version_major -eq 2 && test $glibc_version_minor -ge 4 ); then : 30 gcc_cv_target_ldbl128=yes 31@@ -29320,6 +29329,10 @@ else 32 && gcc_cv_target_ldbl128=yes 33 34 fi 35+ 36+ ;; 37+ esac 38+ 39 fi 40 41 ;; 42diff --git gcc/configure.ac gcc/configure.ac 43index b066cc609e1..6c15ed898c0 100644 44--- gcc/configure.ac 45+++ gcc/configure.ac 46@@ -5971,13 +5971,25 @@ case "$target" in 47 AC_ARG_WITH(long-double-128, 48 [AS_HELP_STRING([--with-long-double-128], 49 [use 128-bit long double by default])], 50- gcc_cv_target_ldbl128="$with_long_double_128", 51+ gcc_cv_target_ldbl128="$with_long_double_128", [ 52+ case "$target" in 53+ s390*-*-linux-musl*) 54+ gcc_cv_target_ldbl128=yes 55+ ;; 56+ powerpc*-*-linux-musl*) 57+ gcc_cv_target_ldbl128=no 58+ ;; 59+ *)] 60 [GCC_GLIBC_VERSION_GTE_IFELSE([2], [4], [gcc_cv_target_ldbl128=yes], [ 61 [gcc_cv_target_ldbl128=no 62 grep '^[ ]*#[ ]*define[ ][ ]*__LONG_DOUBLE_MATH_OPTIONAL' \ 63 $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \ 64 && gcc_cv_target_ldbl128=yes 65- ]])]) 66+ ]])] 67+ [ 68+ ;; 69+ esac 70+ ]) 71 ;; 72 esac 73 if test x$gcc_cv_target_ldbl128 = xyes; then 74-- 752.17.1 76