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

Michael Meissner meissner@gcc.gnu.org
Wed Feb 16 17:51:49 GMT 2022


https://gcc.gnu.org/g:9a4cc0c45f7c0f73ec84bc2716e1588fc40aead7

commit 9a4cc0c45f7c0f73ec84bc2716e1588fc40aead7
Author: Michael Meissner <meissner@linux.ibm.com>
Date:   Wed Feb 16 12:51:15 2022 -0500

    Revert patch.
    
    2022-02-15  Michael Meissner  <meissner@the-meissners.org>
    
    gcc/
            Revert patch.
            PR target/99708
            * config/rs6000/rs6000-c.cc (rs6000_target_modify_macros): Define
            __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__ if we have float128
            support.
    
    gcc/testsuite/
            Revert patch.
            PR target/99708
            * gcc.target/powerpc/pr99708.c: New test.

Diff:
---
 gcc/config/rs6000/rs6000-c.cc              | 12 ++----------
 gcc/testsuite/gcc.target/powerpc/pr99708.c | 21 ---------------------
 2 files changed, 2 insertions(+), 31 deletions(-)

diff --git a/gcc/config/rs6000/rs6000-c.cc b/gcc/config/rs6000/rs6000-c.cc
index b5f771d1308..15251efc209 100644
--- a/gcc/config/rs6000/rs6000-c.cc
+++ b/gcc/config/rs6000/rs6000-c.cc
@@ -581,17 +581,9 @@ rs6000_target_modify_macros (bool define_p, HOST_WIDE_INT flags,
     {
       rs6000_define_or_undefine_macro (define_p, "__FLOAT128__");
       if (define_p)
-	{
-	  rs6000_define_or_undefine_macro (true, "__float128=__ieee128");
-	  rs6000_define_or_undefine_macro (true, "__SIZEOF_FLOAT128__=16");
-	  rs6000_define_or_undefine_macro (true, "__SIZEOF_IBM128__=16");
-	}
+	rs6000_define_or_undefine_macro (true, "__float128=__ieee128");
       else
-	{
-	  rs6000_define_or_undefine_macro (false, "__float128");
-	  rs6000_define_or_undefine_macro (false, "__SIZEOF_FLOAT128__");
-	  rs6000_define_or_undefine_macro (false, "__SIZEOF_IBM128__");
-	}
+	rs6000_define_or_undefine_macro (false, "__float128");
     }
   /* OPTION_MASK_FLOAT128_HARDWARE can be turned on if -mcpu=power9 is used or
      via the target attribute/pragma.  */
diff --git a/gcc/testsuite/gcc.target/powerpc/pr99708.c b/gcc/testsuite/gcc.target/powerpc/pr99708.c
deleted file mode 100644
index d478f7bc4c0..00000000000
--- a/gcc/testsuite/gcc.target/powerpc/pr99708.c
+++ /dev/null
@@ -1,21 +0,0 @@
-/* { dg-do run } */
-/* { require-effective-target ppc_float128_sw } */
-/* { dg-options "-O2 -mvsx -mfloat128" } */
-
-/*
- * PR target/99708
- *
- * Verify that __SIZEOF_FLOAT128__ and __SIZEOF_IBM128__ are properly defined.
- */
-
-#include <stdlib.h>
-
-int main (void)
-{
-  if (__SIZEOF_FLOAT128__ != sizeof (__float128)
-      || __SIZEOF_IBM128__ != sizeof (__ibm128))
-    abort ();
-
-  return 0;
-}
-


More information about the Gcc-cvs mailing list