diff options
author | Jakub Jelinek <jakub@redhat.com> | 2019-01-02 10:25:59 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2019-01-02 10:25:59 +0100 |
commit | 0958fc854bca76f763d43e998143602975cd8fe0 (patch) | |
tree | 0ae2bd88649d886a164693ef5332f32b0c3f54be /gcc | |
parent | 9e1f4e00169f251d6777a6e594fb88fd581184f3 (diff) | |
download | gcc-0958fc854bca76f763d43e998143602975cd8fe0.zip gcc-0958fc854bca76f763d43e998143602975cd8fe0.tar.gz gcc-0958fc854bca76f763d43e998143602975cd8fe0.tar.bz2 |
re PR ipa/88561 (PGO devirtualization miscompilation of firefox)
PR ipa/88561
* g++.dg/tree-prof/devirt.C: Expect _ZThn16 only for lp64 and llp64
targets and expect _ZThn8 for ilp32 targets.
From-SVN: r267507
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/testsuite/g++.dg/tree-prof/devirt.C | 5 |
2 files changed, 10 insertions, 1 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6f60320..dfb1c97 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-01-02 Jakub Jelinek <jakub@redhat.com> + + PR ipa/88561 + * g++.dg/tree-prof/devirt.C: Expect _ZThn16 only for lp64 and llp64 + targets and expect _ZThn8 for ilp32 targets. + 2019-01-01 Martin Sebor <msebor@redhat.com> Jeff Law <law@redhat.com> diff --git a/gcc/testsuite/g++.dg/tree-prof/devirt.C b/gcc/testsuite/g++.dg/tree-prof/devirt.C index 7d6797d..3de5dbc 100644 --- a/gcc/testsuite/g++.dg/tree-prof/devirt.C +++ b/gcc/testsuite/g++.dg/tree-prof/devirt.C @@ -1,4 +1,6 @@ +/* PR ipa/88561 */ /* { dg-options "-O3 -fdump-tree-dom3-details" } */ + struct nsISupports { virtual int QueryInterface (const int &aIID, void **aInstancePtr) = 0; @@ -119,5 +121,6 @@ main () __builtin_abort (); } -/* { dg-final-use-not-autofdo { scan-tree-dump-times "folding virtual function call to virtual unsigned int mozPersonalDictionary::_ZThn16" 1 "dom3" } } */ +/* { dg-final-use-not-autofdo { scan-tree-dump-times "folding virtual function call to virtual unsigned int mozPersonalDictionary::_ZThn16" 1 "dom3" { target { lp64 || llp64 } } } } */ +/* { dg-final-use-not-autofdo { scan-tree-dump-times "folding virtual function call to virtual unsigned int mozPersonalDictionary::_ZThn8" 1 "dom3" { target ilp32 } } } */ /* { dg-final-use-not-autofdo { scan-tree-dump-times "folding virtual function call to virtual unsigned int mozPersonalDictionary::AddRef" 1 "dom3" } } */ |