From 8437794102e86a1bd5f2257aa95ea76890810a28 Mon Sep 17 00:00:00 2001 From: Michael Meissner Date: Fri, 11 Mar 2022 19:09:20 -0500 Subject: [PATCH] Revert __SIZEOF__IBM128__ and __SIZEOF_FLOAT128__ patch. 2022-03-05 Michael Meissner gcc/ PR target/99708 * config/rs6000/rs6000-c.c: Revert 2022-03-05 patch. gcc/testsuite/ PR target/99708 * gcc.target/powerpc/pr99708.c: Revert 2022-03-05 patch. --- gcc/config/rs6000/rs6000-c.c | 6 +----- gcc/testsuite/gcc.target/powerpc/pr99708.c | 21 --------------------- 2 files changed, 1 insertion(+), 26 deletions(-) delete mode 100644 gcc/testsuite/gcc.target/powerpc/pr99708.c diff --git a/gcc/config/rs6000/rs6000-c.c b/gcc/config/rs6000/rs6000-c.c index eec8c89d1b6f..e2fa2cdc88f3 100644 --- a/gcc/config/rs6000/rs6000-c.c +++ b/gcc/config/rs6000/rs6000-c.c @@ -620,11 +620,7 @@ rs6000_cpu_cpp_builtins (cpp_reader *pfile) if (TARGET_FRSQRTES) builtin_define ("__RSQRTEF__"); if (TARGET_FLOAT128_TYPE) - builtin_define ("__FLOAT128_TYPE__"); - if (ibm128_float_type_node) - builtin_define ("__SIZEOF_IBM128__=16"); - if (ieee128_float_type_node) - builtin_define ("__SIZEOF_FLOAT128__=16"); + builtin_define ("__FLOAT128_TYPE__"); #ifdef TARGET_LIBC_PROVIDES_HWCAP_IN_TCB builtin_define ("__BUILTIN_CPU_SUPPORTS__"); #endif diff --git a/gcc/testsuite/gcc.target/powerpc/pr99708.c b/gcc/testsuite/gcc.target/powerpc/pr99708.c deleted file mode 100644 index d478f7bc4c04..000000000000 --- 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 - -int main (void) -{ - if (__SIZEOF_FLOAT128__ != sizeof (__float128) - || __SIZEOF_IBM128__ != sizeof (__ibm128)) - abort (); - - return 0; -} - -- 2.47.2