From cc74832213ba1fc7abe402573a0b381e1c404df0 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Sun, 26 Jan 2020 00:32:01 +0100 Subject: [PATCH] testsuite: Fix up pr92788.C FAIL on ia32. 2020-01-26 Jakub Jelinek 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__. --- gcc/testsuite/ChangeLog | 7 +++++++ gcc/testsuite/{g++.dg => g++.target/i386}/pr92788.C | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) rename gcc/testsuite/{g++.dg => g++.target/i386}/pr92788.C (98%) 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 + + 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 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 {}; template using __enable_if_t = _Tp; -void *operator new(unsigned long, void *__p) { return __p; } +void *operator new(__SIZE_TYPE__, void *__p) { return __p; } template class __normal_iterator { -- 2.30.2