https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65087 --- Comment #8 from Martin LiÅ¡ka --- So the problem is caused by ICF which makes a symbol to have no direct calls (and no references). As a result IPA CP triggers verification failure. I hope the right solution is to append TODO_remove_function for ICF IPA pass. I've been testing following patch: diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index 31fcbec..56f59a9 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -3049,7 +3049,7 @@ const pass_data pass_data_ipa_icf = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - 0, /* todo_flags_finish */ + TODO_remove_functions, /* todo_flags_finish */ }; class pass_ipa_icf : public ipa_opt_pass_d Martin >From gcc-bugs-return-479008-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Mar 02 16:10:36 2015 Return-Path: Delivered-To: listarch-gcc-bugs@gcc.gnu.org Received: (qmail 36753 invoked by alias); 2 Mar 2015 16:10:36 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Delivered-To: mailing list gcc-bugs@gcc.gnu.org Received: (qmail 36707 invoked by uid 48); 2 Mar 2015 16:10:32 -0000 From: "meissner at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/65138] [5 Regression] testsuite ICEs on powerpc64le Date: Mon, 02 Mar 2015 16:10:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: meissner at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: attachments.created Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg00152.txt.bz2 Content-length: 341 https://gcc.gnu.org/bugzilla/show_bug.cgi?ide138 --- Comment #6 from Michael Meissner --- Created attachment 34923 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id4923&actioníit Proposed patch to fix the problem I'm going to run full tests on this patch, but this patch appears to fix the problem.