]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/ipa-icf.c
IPA ICF: Fix late initialization of callgraph hooks.
authorMartin Liska <mliska@suse.cz>
Mon, 9 Feb 2015 10:31:14 +0000 (11:31 +0100)
committerMartin Liska <marxin@gcc.gnu.org>
Mon, 9 Feb 2015 10:31:14 +0000 (10:31 +0000)
commite3e968e90602ffd3ccbff201b8202b0d4075b4e9
tree98c5f1bf15588bc3ef2c03d7a88ed5a45eb843d9
parent62e0e086d37e81581648631aa0ad3e6af3814cad
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.

From-SVN: r220531
gcc/ChangeLog
gcc/ipa-icf.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr64858.C [new file with mode: 0644]