On 01/30/15 05:29, Martin Liška wrote:
Hi.
Attached patch handles situation where remove_unreachable_nodes is
called before
IPA ICF registers removal hooks. As a result, a deleted callgraph node
is touched.
Tested on x86_64-linux-pc without a new regression seen.
Ready for trunk?
Thanks,
Martin
0001-IPA-ICF-Fix-late-initialization-of-callgraph-hooks.patch
From 3be6518536de93b9e5397a4f65cb7e07422efbbb Mon Sep 17 00:00:00 2001
From: mliska<mli...@suse.cz>
Date: Fri, 30 Jan 2015 12:25:22 +0100
Subject: [PATCH] IPA ICF: Fix late initialization of callgraph hooks.
gcc/testsuite/ChangeLog:
2015-01-30 Martin Liska<mli...@suse.cz>
* g++.dg/ipa/pr64858.C: New test.
gcc/ChangeLog:
2015-01-30 Martin Liska<mli...@suse.cz>
* ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
just if not yet registered.
(ipa_icf_generate_summary): Register callgraph hooks.
OK.
jeff