On 15/11/2019 18:15, Segher Boessenkool wrote: > On Fri, Nov 15, 2019 at 06:03:25PM +0000, Szabolcs Nagy wrote: >> i'm fine with that, it means the --with-long-double-128 >> switch does not work on *-musl, > > I thought that is what you wanted to do. If you just want to change the > default, do that *before* this block, not *in* it?
ok, i'll just hard code the abi: On powerpc and s390x the musl ABI requires 64 bit and 128 bit long double respectively, so set the long double abi accordingly instead of requiring correct use of --with-long-double-128. gcc/ChangeLog: 2019-11-15 Szabolcs Nagy <szabolcs.n...@arm.com> * configure.ac (gcc_cv_target_ldbl128): Set for *-musl* targets. * configure: Regenerate.
diff --git a/gcc/configure b/gcc/configure index 6808c23d26b..70ac7cf53f8 100755 --- a/gcc/configure +++ b/gcc/configure @@ -29711,6 +29711,12 @@ $as_echo "$have_sys_sdt_h" >&6; } # Some glibc targets used DFmode long double, but with glibc 2.4 # and later they can use TFmode. case "$target" in + powerpc*-*-linux-musl*) + gcc_cv_target_ldbl128=no + ;; + s390*-*-linux-musl*) + gcc_cv_target_ldbl128=yes + ;; powerpc*-*-linux* | \ sparc*-*-linux* | \ s390*-*-linux* | \ diff --git a/gcc/configure.ac b/gcc/configure.ac index 1a0d68208e4..d8561bf4cd9 100644 --- a/gcc/configure.ac +++ b/gcc/configure.ac @@ -6154,6 +6154,12 @@ AC_MSG_RESULT($have_sys_sdt_h) # Some glibc targets used DFmode long double, but with glibc 2.4 # and later they can use TFmode. case "$target" in + powerpc*-*-linux-musl*) + gcc_cv_target_ldbl128=no + ;; + s390*-*-linux-musl*) + gcc_cv_target_ldbl128=yes + ;; powerpc*-*-linux* | \ sparc*-*-linux* | \ s390*-*-linux* | \