https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116007

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jakub at gcc dot gnu.org

--- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
To build libquadmath on powerpc*, one needs --with-long-double-128 (and perhaps
--with-long-double-format=ieee if C library supports that), unless that is
detected automatically.
# Check if TFmode long double should be used by default or not.
# Some glibc targets used DFmode long double, but with glibc 2.4
# and later they can use TFmode.
case "$target" in
  powerpc*-*-linux* | \
  sparc*-*-linux* | \
  s390*-*-linux* | \
  alpha*-*-linux*)
    AC_ARG_WITH(long-double-128,
      [AS_HELP_STRING([--with-long-double-128],
                      [use 128-bit long double by default])],
      gcc_cv_target_ldbl128="$with_long_double_128", [
      case "$target" in
        s390*-*-linux-musl*)
          gcc_cv_target_ldbl128=yes
          ;;
        powerpc*-*-linux-musl*)
          gcc_cv_target_ldbl128=no
          ;;
        *)]
      [GCC_GLIBC_VERSION_GTE_IFELSE([2], [4], [gcc_cv_target_ldbl128=yes], [
      [gcc_cv_target_ldbl128=no
      grep '^[  ]*#[    ]*define[       ][      ]*__LONG_DOUBLE_MATH_OPTIONAL'
\
        $target_header_dir/bits/wordsize.h > /dev/null 2>&1 \
      && gcc_cv_target_ldbl128=yes
      ]])]
      [
          ;;                                                  
      esac
      ])
    ;;
esac                                                          

>From thbis, it seems powerpc musl likely doesn't have neither double double nor
IEEE quad support and so in that case you can't use --enable-libquadmath
--enable-libquadmath-support.

Reply via email to