From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1666) id DAD423858413; Mon, 17 Oct 2022 13:10:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DAD423858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666012233; bh=YpGq2ge5UoROy3KZUOwN26tb1oaW/i63x07iCKrIdoQ=; h=From:To:Subject:Date:From; b=dJv1JNMPO7Y7iMBudOAN3hDR0MLAZgsD1FCP3ZfkDVkNTQGA0Pq0vXFjOIEFdEsX8 YPSMUK5OBDj8slz/SvZqwZM9jYqnJhf8fPNg5uHwzA3BMWqZlg9nePkiM5BDuSMruk 0zdP+lEH9nDtppJJfPvjzq5ENVXTGJNbjhtLV1Jo= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Richard Biener To: gcc-cvs@gcc.gnu.org Subject: [gcc r12-8836] testsuite: Fix up pr106922.C test X-Act-Checkin: gcc X-Git-Author: Jakub Jelinek X-Git-Refname: refs/heads/releases/gcc-12 X-Git-Oldrev: e8d5f3a1b5a5839cb1db57d6f6766469cc4f8747 X-Git-Newrev: 641369e29f57c508e6316d5d221c1a92900163f9 Message-Id: <20221017131033.DAD423858413@sourceware.org> Date: Mon, 17 Oct 2022 13:10:33 +0000 (GMT) List-Id: https://gcc.gnu.org/g:641369e29f57c508e6316d5d221c1a92900163f9 commit r12-8836-g641369e29f57c508e6316d5d221c1a92900163f9 Author: Jakub Jelinek Date: Fri Sep 23 09:46:59 2022 +0200 testsuite: Fix up pr106922.C test On Thu, Sep 22, 2022 at 01:10:08PM +0200, Richard Biener via Gcc-patches wrote: > * g++.dg/tree-ssa/pr106922.C: Adjust. > --- a/gcc/testsuite/g++.dg/tree-ssa/pr106922.C > +++ b/gcc/testsuite/g++.dg/tree-ssa/pr106922.C > @@ -87,5 +87,4 @@ void testfunctionfoo() { > } > } > > -// { dg-final { scan-tree-dump-times "Found fully redundant value" 4 "pre" { xfail { ! lp64 } } } } > -// { dg-final { scan-tree-dump-not "m_initialized" "cddce3" { xfail { ! lp64 } } } } > +// { dg-final { scan-tree-dump-not "m_initialized" "dce3" } } I've noticed +UNRESOLVED: g++.dg/tree-ssa/pr106922.C -std=gnu++20 scan-tree-dump-not dce3 "m_initialized" +UNRESOLVED: g++.dg/tree-ssa/pr106922.C -std=gnu++2b scan-tree-dump-not dce3 "m_initialized" with this change, both on x86_64 and i686. The dump is still cddce3, additionally as the last reference to the pre dump is gone, not sure it is worth creating that dump. With the following patch, there aren't FAILs nor UNRESOLVED tests with GXX_TESTSUITE_STDS=98,11,14,17,20,2b make check-g++ RUNTESTFLAGS="--target_board=unix\{-m32,-m64\} dg.exp='pr106922.C'" 2022-09-23 Jakub Jelinek PR tree-optimization/106922 * g++.dg/tree-ssa/pr106922.C: Scan in cddce3 dump rather than dce3. Remove -fdump-tree-pre-details from dg-options. (cherry picked from commit a0de11d0d22054b6fd76a0730a3ec807542379d0) Diff: --- gcc/testsuite/g++.dg/tree-ssa/pr106922.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/g++.dg/tree-ssa/pr106922.C b/gcc/testsuite/g++.dg/tree-ssa/pr106922.C index 14fa061de20..2aec4975aa8 100644 --- a/gcc/testsuite/g++.dg/tree-ssa/pr106922.C +++ b/gcc/testsuite/g++.dg/tree-ssa/pr106922.C @@ -1,5 +1,5 @@ // { dg-require-effective-target c++20 } -// { dg-options "-O2 -fdump-tree-pre-details -fdump-tree-cddce3" } +// { dg-options "-O2 -fdump-tree-cddce3" } template struct __new_allocator { void deallocate(int *, int) { operator delete(0); } @@ -87,4 +87,4 @@ void testfunctionfoo() { } } -// { dg-final { scan-tree-dump-not "m_initialized" "dce3" } } +// { dg-final { scan-tree-dump-not "m_initialized" "cddce3" } }