[gcc(refs/users/meissner/heads/work077)] Revert patch.

Michael Meissner meissner@gcc.gnu.org
Wed Feb 2 21:58:58 GMT 2022


https://gcc.gnu.org/g:cff2393c38d6bf5e180bfbf21a01a24a1c7d0dc5

commit cff2393c38d6bf5e180bfbf21a01a24a1c7d0dc5
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Wed Feb 2 16:58:27 2022 -0500

    Revert patch.
    
    2022-02-02  Michael Meissner  <meissner@the-meissners.org>
    
    gcc/
            Revert patch.
            * config.in (TARGET_POWERPC_IEEE_128BIT_LONG_DOUBLE): New
            configure option.
            * config/rs6000/rs6000.cc (TARGET_IEEEQUAD_DEFAULT): If the host
            compiler used IEEE 128-bit long doubles and the long double format
            was not specified with configuration switches, set the long double
            format to IEEE 128-bit.
            * configure.ac (TARGET_POWERPC_IEEE_128BIT_LONG_DOUBLE): Set as 1
            if the host compiler used IEEE 128-bit long doubles.
            * configure: Regenerate.

Diff:
---
 gcc/config.in               |  4 ----
 gcc/config/rs6000/rs6000.cc |  7 +------
 gcc/configure               | 33 ---------------------------------
 gcc/configure.ac            | 21 +--------------------
 4 files changed, 2 insertions(+), 63 deletions(-)

diff --git a/gcc/config.in b/gcc/config.in
index 746c522e4e6..64c27c9cfac 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -2732,7 +2732,3 @@
 #undef vfork
 #endif
 
-/* Define if long double is IEEE 128-bit on PowerPC systems by default.  */
-#ifndef USED_FOR_TARGET
-#define TARGET_POWERPC_IEEE_128BIT_LONG_DOUBLE
-#endif
diff --git a/gcc/config/rs6000/rs6000.cc b/gcc/config/rs6000/rs6000.cc
index a0e234438cd..666dec694a8 100644
--- a/gcc/config/rs6000/rs6000.cc
+++ b/gcc/config/rs6000/rs6000.cc
@@ -91,15 +91,10 @@
      explicitly redefine TARGET_IEEEQUAD and TARGET_IEEEQUAD_DEFAULT to 0, so
      those systems will not pick up this default.  This needs to be after all
      of the include files, so that POWERPC_LINUX and POWERPC_FREEBSD are
-     properly defined.
-
-     If we were built with a host compiler that defaulted to IEEE 128-bit, set
-     the default here to use IEEE 128-bit.  */
+     properly defined.  */
 #ifndef TARGET_IEEEQUAD_DEFAULT
 #if !defined (POWERPC_LINUX) && !defined (POWERPC_FREEBSD)
 #define TARGET_IEEEQUAD_DEFAULT 1
-#elif defined (TARGET_POWERPC_IEEE_128BIT_LONG_DOUBLE)
-#define TARGET_IEEEQUAD_DEFAULT 1
 #else
 #define TARGET_IEEEQUAD_DEFAULT 0
 #endif
diff --git a/gcc/configure b/gcc/configure
index 824d172b606..bd4d4721868 100755
--- a/gcc/configure
+++ b/gcc/configure
@@ -31473,39 +31473,6 @@ on 64-bit PowerPC VSX Linux systems" "$LINENO" 5
     with_long_double_format=""
     ;;
 esac
-else
-  gcc_cv_powerpc_ieee_long_double=no
-   case "$target" in
-     powerpc*-*-linux*)
-       # If --with-long-double format is not set, check to see whether the host
-       # compiler defaults to it.
-     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if PowerPC target defaults to IEEE 128-bit long double" >&5
-$as_echo_n "checking if PowerPC target defaults to IEEE 128-bit long double... " >&6; }
-     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
-/* end confdefs.h.  */
-
-#if defined(_ARCH_PPC) && defined(__LONG_DOUBLE_IEEE128__)
-IEEE_LONG_DOUBLE
-#endif
-
-_ACEOF
-if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
-  $EGREP "IEEE_LONG_DOUBLE" >/dev/null 2>&1; then :
-  gcc_cv_powerpc_ieee_long_double=yes
-else
-  gcc_cv_powerpc_ieee_long_double=no
-fi
-rm -f conftest*
-
-     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_powerpc_ieee_long_double" >&5
-$as_echo "$gcc_cv_powerpc_ieee_long_double" >&6; }
-     if test x$gcc_cv_powerpc_ieee_long_double = xyes; then
-
-$as_echo "#define TARGET_POWERPC_IEEE_128BIT_LONG_DOUBLE 1" >>confdefs.h
-
-     fi
-     ;;
-   esac
 fi
 
 
diff --git a/gcc/configure.ac b/gcc/configure.ac
index c373b348568..1171c946e6e 100644
--- a/gcc/configure.ac
+++ b/gcc/configure.ac
@@ -6975,26 +6975,7 @@ on 64-bit PowerPC VSX Linux systems])
     with_long_double_format=""
     ;;
 esac],
-  [gcc_cv_powerpc_ieee_long_double=no
-   case "$target" in
-     powerpc*-*-linux*)
-       # If --with-long-double format is not set, check to see whether the host
-       # compiler defaults to it.
-     AC_MSG_CHECKING(if PowerPC target defaults to IEEE 128-bit long double)
-     AC_EGREP_CPP(IEEE_LONG_DOUBLE,[
-#if defined(_ARCH_PPC) && defined(__LONG_DOUBLE_IEEE128__)
-IEEE_LONG_DOUBLE
-#endif
-        ],
-        [gcc_cv_powerpc_ieee_long_double=yes],
-        [gcc_cv_powerpc_ieee_long_double=no])
-     AC_MSG_RESULT($gcc_cv_powerpc_ieee_long_double)
-     if test x$gcc_cv_powerpc_ieee_long_double = xyes; then
-       AC_DEFINE(TARGET_POWERPC_IEEE_128BIT_LONG_DOUBLE, 1,
-         [Define if long double is IEEE 128-bit on PowerPC systems by default])
-     fi
-     ;;
-   esac])
+  [])
 
 # Check if the target LIBC supports exporting the AT_PLATFORM and AT_HWCAP
 # values in the TCB.  Currently, only GLIBC 2.23 and later support this.


More information about the Gcc-cvs mailing list