IPA ICF: Fix late initialization of callgraph hooks.
commite83edd3fc4803f9a43afc223a9a8792d57d17884
authormarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Feb 2015 10:31:14 +0000 (9 10:31 +0000)
committermarxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Feb 2015 10:31:14 +0000 (9 10:31 +0000)
tree98c5f1bf15588bc3ef2c03d7a88ed5a45eb843d9
parent742c077a84133fcc162444c37cad99d6148060d9
IPA ICF: Fix late initialization of callgraph hooks.

* g++.dg/ipa/pr64858.C: New test.
* ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
just if not yet registered.
(ipa_icf_generate_summary): Register callgraph hooks.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220531 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-icf.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr64858.C [new file with mode: 0644]