This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Fix PR ipa/64858


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<mliska@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<mliska@suse.cz>

	* g++.dg/ipa/pr64858.C: New test.

gcc/ChangeLog:

2015-01-30  Martin Liska<mliska@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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]