From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11909 invoked by alias); 2 Mar 2015 07:49:16 -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 Received: (qmail 11837 invoked by uid 48); 2 Mar 2015 07:49:12 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/65130] [5 Regression] ICE with LTO on valid code on x86_64-linux-gnu Date: Mon, 02 Mar 2015 07:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: ktietz at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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/msg00082.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65130 --- Comment #10 from Jan Hubicka --- The bug is: fn3/5 (fn3) @0x7ffff6ae5dc8 Type: function definition analyzed Visibility: prevailing_def_ironly previous sharing asm name: 11 References: a/4 (read) Referring: Read from file: b.o Availability: local First run: 0 Function flags: local Called by: fn2/10 (inlined) (10.11 per call) fn2/0 (1.00 per call) Calls: fn4/2 (inlined) (10.11 per call) fn3 is not inlined clone but it is still called by fn2 and inlined into it. This is why we end up producing a cycle in the inline tree. This seems to be introduced by code inlining functions called once. I suppose there is a problem with nodes being removed and walked at the same time. Will check more tomorrow.