re PR ipa/88561 (PGO devirtualization miscompilation of firefox)
authorJan Hubicka <hubicka@ucw.cz>
Fri, 21 Dec 2018 19:13:06 +0000 (20:13 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Fri, 21 Dec 2018 19:13:06 +0000 (19:13 +0000)
commitffdcdc0b5a529a830cbde79e921960b27d69652e
tree892ea8407db771d48dc910156b4061ed84f2e662
parent69597e2f5d15e801cc4911e749a10b718c08fe9d
re PR ipa/88561 (PGO devirtualization miscompilation of firefox)

PR ipa/88561
* ipa-polymorphic-call.c
(ipa_polymorphic_call_context::ipa_polymorphic_call_context): Handle
arguments of thunks correctly.
(ipa_polymorphic_call_context::get_dynamic_context): Be ready for
NULL instance pinter.
* lto-cgraph.c (lto_output_node): Always stream thunk info.

From-SVN: r267338
gcc/ChangeLog
gcc/ipa-polymorphic-call.c
gcc/lto-cgraph.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-prof/devirt.C [new file with mode: 0644]