public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Michael Meissner <meissner@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc(refs/users/meissner/heads/work077)] Revert patch.
Date: Wed,  2 Feb 2022 18:47:47 +0000 (GMT)	[thread overview]
Message-ID: <20220202184747.D7A763858D37@sourceware.org> (raw)

https://gcc.gnu.org/g:52b446ee8df96dea2091a68ce4fd0135e8be8fb5

commit 52b446ee8df96dea2091a68ce4fd0135e8be8fb5
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Wed Feb 2 13:47:20 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               |  5 -----
 gcc/config/rs6000/rs6000.cc |  7 +------
 gcc/configure               | 33 ---------------------------------
 gcc/configure.ac            | 21 +--------------------
 4 files changed, 2 insertions(+), 64 deletions(-)

diff --git a/gcc/config.in b/gcc/config.in
index 8dc90def9ca..64c27c9cfac 100644
--- a/gcc/config.in
+++ b/gcc/config.in
@@ -2732,8 +2732,3 @@
 #undef vfork
 #endif
 
-/* Define as 1 if the default long double on a PowerPC system uses the IEEE
-   128-bit format. */
-#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 e005266361d..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 TARGET_POWERPC_IEEE_128BIT_LONG_DOUBLE
 #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.


             reply	other threads:[~2022-02-02 18:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-02 18:47 Michael Meissner [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-02-03  0:47 Michael Meissner
2022-02-02 21:58 Michael Meissner
2022-02-02 18:29 Michael Meissner
2022-02-02  4:58 Michael Meissner
2022-01-31 20:57 Michael Meissner
2022-01-28 21:21 Michael Meissner
2022-01-28 14:53 Michael Meissner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220202184747.D7A763858D37@sourceware.org \
    --to=meissner@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).