Commit 0958fc85 by Jakub Jelinek Committed by Jakub Jelinek

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
parent 9e1f4e00
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> 2019-01-01 Martin Sebor <msebor@redhat.com>
Jeff Law <law@redhat.com> Jeff Law <law@redhat.com>
......
/* PR ipa/88561 */
/* { dg-options "-O3 -fdump-tree-dom3-details" } */ /* { dg-options "-O3 -fdump-tree-dom3-details" } */
struct nsISupports struct nsISupports
{ {
virtual int QueryInterface (const int &aIID, void **aInstancePtr) = 0; virtual int QueryInterface (const int &aIID, void **aInstancePtr) = 0;
...@@ -119,5 +121,6 @@ main () ...@@ -119,5 +121,6 @@ main ()
__builtin_abort (); __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" } } */ /* { dg-final-use-not-autofdo { scan-tree-dump-times "folding virtual function call to virtual unsigned int mozPersonalDictionary::AddRef" 1 "dom3" } } */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment