[gcc(refs/users/marxin/heads/marxin-gcc-benchmark-branch)] testsuite: Fix up pr92788.C FAIL on ia32.

Martin Liska marxin@gcc.gnu.org
Mon Mar 30 10:28:35 GMT 2020


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

commit cc74832213ba1fc7abe402573a0b381e1c404df0
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Sun Jan 26 00:32:01 2020 +0100

    testsuite: Fix up pr92788.C FAIL on ia32.
    
    2020-01-26  Jakub Jelinek  <jakub@redhat.com>
    
            PR tree-optimization/92788
            * g++.dg/pr92788.C: Move to ...
            * g++.target/i386/pr92788.C: ... here.  Remove target from dg-do line.
            Change type of operator new's first parameter to __SIZE_TYPE__.

Diff:
---
 gcc/testsuite/ChangeLog                             | 7 +++++++
 gcc/testsuite/{g++.dg => g++.target/i386}/pr92788.C | 4 ++--
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 587603ffb46..49901356e7b 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2020-01-26  Jakub Jelinek  <jakub@redhat.com>
+
+	PR tree-optimization/92788
+	* g++.dg/pr92788.C: Move to ...
+	* g++.target/i386/pr92788.C: ... here.  Remove target from dg-do line.
+	Change type of operator new's first parameter to __SIZE_TYPE__.
+
 2020-01-25  Marek Polacek  <polacek@redhat.com>
 
 	PR c++/93414 - poor diagnostic for dynamic_cast in constexpr context.
diff --git a/gcc/testsuite/g++.dg/pr92788.C b/gcc/testsuite/g++.target/i386/pr92788.C
similarity index 98%
rename from gcc/testsuite/g++.dg/pr92788.C
rename to gcc/testsuite/g++.target/i386/pr92788.C
index b92ae38f7aa..048bbd1b9b8 100644
--- a/gcc/testsuite/g++.dg/pr92788.C
+++ b/gcc/testsuite/g++.target/i386/pr92788.C
@@ -1,4 +1,4 @@
-/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
+/* { dg-do compile } */
 /* { dg-require-effective-target c++11 } */
 /* { dg-options "-O3 -fnon-call-exceptions -ftracer -march=k8 -Wno-return-type" } */
 
@@ -17,7 +17,7 @@ struct is_same : integral_constant<true> {};
 
 template <bool, typename _Tp> using __enable_if_t = _Tp;
 
-void *operator new(unsigned long, void *__p) { return __p; }
+void *operator new(__SIZE_TYPE__, void *__p) { return __p; }
 
 template <typename _Iterator, typename> class __normal_iterator {


More information about the Gcc-cvs mailing list