From d2014992c0b7c4090cfd030c02e792927ab674fc Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 1 Jan 2019 14:10:39 +0100 Subject: [PATCH] devirt-13_0.C: Drop broken scan of ssa dump. * g++.dg/lto/devirt-13_0.C: Drop broken scan of ssa dump. * g++.dg/lto/devirt-14_0.C: Drop broken scan of ssa dump. * g++.dg/lto/devirt-23_0.C: Add -fdump-ipa-cp. From-SVN: r267496 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/g++.dg/lto/devirt-13_0.C | 4 ++-- gcc/testsuite/g++.dg/lto/devirt-14_0.C | 2 +- gcc/testsuite/g++.dg/lto/devirt-23_0.C | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 0f75fffb2f8..8ebf5250f34 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-01-01 Jan Hubicka + + * g++.dg/lto/devirt-13_0.C: Drop broken scan of ssa dump. + * g++.dg/lto/devirt-14_0.C: Drop broken scan of ssa dump. + * g++.dg/lto/devirt-23_0.C: Add -fdump-ipa-cp. + 2019-01-01 Jan Hubicka * g++.dg/tree-prof/devirt.C: Update testcase. diff --git a/gcc/testsuite/g++.dg/lto/devirt-13_0.C b/gcc/testsuite/g++.dg/lto/devirt-13_0.C index f9015fd29da..49d7b657663 100644 --- a/gcc/testsuite/g++.dg/lto/devirt-13_0.C +++ b/gcc/testsuite/g++.dg/lto/devirt-13_0.C @@ -1,5 +1,5 @@ /* { dg-lto-do run } */ /* Call to foo should be devirtualized because there are no derived types of A. */ -/* { dg-lto-options "-O2 -flto -fdump-tree-ssa" } */ +/* { dg-lto-options "-O2 -flto" } */ #include "../ipa/devirt-13.C" -/* { dg-final { scan-tree-dump-times "OBJ_TYPE_REF" 0 "ssa"} } */ +/* Ideally we should also { scan-tree-dump-times "OBJ_TYPE_REF" 0 "ssa"}. */ diff --git a/gcc/testsuite/g++.dg/lto/devirt-14_0.C b/gcc/testsuite/g++.dg/lto/devirt-14_0.C index c7528f6da9e..bdd79d7cdc5 100644 --- a/gcc/testsuite/g++.dg/lto/devirt-14_0.C +++ b/gcc/testsuite/g++.dg/lto/devirt-14_0.C @@ -1,4 +1,4 @@ /* { dg-lto-do run } */ /* { dg-lto-options "-O2 -fdump-tree-ssa" } */ #include "../ipa/devirt-14.C" -/* { dg-final { scan-tree-dump-not "A.*foo" "ssa"} } */ +/* Ideally we should also { scan-tree-dump-not "A.*foo" "ssa"} } */ diff --git a/gcc/testsuite/g++.dg/lto/devirt-23_0.C b/gcc/testsuite/g++.dg/lto/devirt-23_0.C index 760f95f2937..ad515dcd784 100644 --- a/gcc/testsuite/g++.dg/lto/devirt-23_0.C +++ b/gcc/testsuite/g++.dg/lto/devirt-23_0.C @@ -1,4 +1,4 @@ /* { dg-lto-do run } */ -/* { dg-lto-options { "-O3 -fno-early-inlining -fno-ipa-sra -flto -fno-devirtualize-speculatively" } } */ +/* { dg-lto-options { "-O3 -fno-early-inlining -fno-ipa-sra -fdump-ipa-cp -flto -fno-devirtualize-speculatively" } } */ #include "../ipa/devirt-23.C" /* { dg-final { scan-wpa-ipa-dump "Discovered a virtual call to" "cp" { xfail *-*-* } } } */ -- 2.30.2