From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14928 invoked by alias); 31 Mar 2014 13:50:07 -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 14884 invoked by uid 48); 31 Mar 2014 13:50:03 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/60721] xcoral fails to build with LTO: internal compiler error: verify_flow_info failed Date: Mon, 31 Mar 2014 13:50: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: 4.9.0 X-Bugzilla-Keywords: lto X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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: 2014-03/txt/msg02821.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60721 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org --- Comment #1 from Richard Biener --- (gdb) p debug_bb (bb) : result_5 = getenv ("SMAC_STACK_SIZE"); if (result_5 != 0B) goto ; else goto ; (gdb) p debug_generic_expr (cfun->decl) init_smac in one unit getenv is pulled in via a header leading to extern char *getenv (const char *__name) __attribute__ ((__nothrow__ , __leaf__)) __attribute__ ((__nonnull__ (1))) __attribute__ ((__warn_unused_result__)); (note the leaf attribute), and in the other we have int main ( argc, argv ) int argc; char **argv; { ... extern char *getenv (); this means that if cfun->calls_setjmp as in this case, this can make a difference. This is verifying after IPA transforms took place. It seems that 'leaf' is a decl attribute and thus is not preserved via gimple_call_fntype streaming (and also cannot be set for indirect calls). Sth for stmt fixup similar as we handle noreturn?