Hi, this patch fixes the unresolved tests i accidentally introduced to lto directory. I ended up droping the tree scan for now as I do not know how to get that working and both testcases also tests runtime.
Honza * 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. Index: g++.dg/lto/devirt-13_0.C =================================================================== --- g++.dg/lto/devirt-13_0.C (revision 267494) +++ g++.dg/lto/devirt-13_0.C (working copy) @@ -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"}. */ Index: g++.dg/lto/devirt-14_0.C =================================================================== --- g++.dg/lto/devirt-14_0.C (revision 267494) +++ g++.dg/lto/devirt-14_0.C (working copy) @@ -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"} } */ Index: g++.dg/lto/devirt-23_0.C =================================================================== --- g++.dg/lto/devirt-23_0.C (revision 267494) +++ g++.dg/lto/devirt-23_0.C (working copy) @@ -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 *-*-* } } } */