From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26314 invoked by alias); 25 Dec 2014 19:49:04 -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 26295 invoked by uid 48); 25 Dec 2014 19:48:58 -0000 From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/64406] New: [5 Regression] ICE: SIGSEGV in estimate_numbers_of_iterations_loop (tree-ssa-loop-niter.c:3453) with custom flags Date: Thu, 25 Dec 2014 19:49:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: 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-12/txt/msg02736.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64406 Bug ID: 64406 Summary: [5 Regression] ICE: SIGSEGV in estimate_numbers_of_iterations_loop (tree-ssa-loop-niter.c:3453) with custom flags Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zsojka at seznam dot cz Created attachment 34332 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=34332&action=edit reduced testcase Compiler output: $ gcc -O -ftree-loop-distribute-patterns -fno-tree-loop-ivcanon -fno-tree-loop-vectorize -ftree-vectorize testcase.c ==19414== Invalid read of size 4 ==19414== at 0xDB5244: estimate_numbers_of_iterations_loop (tree-ssa-loop-niter.c:3453) ==19414== by 0xDB5244: scev_probably_wraps_p(tree_node*, tree_node*, gimple_statement_base*, loop*, bool) (tree-ssa-loop-niter.c:3869) ==19414== by 0x17262FF: convert_affine_scev(loop*, tree_node*, tree_node**, tree_node**, gimple_statement_base*, bool) (tree-chrec.c:1244) ==19414== by 0x17269EA: chrec_convert_1(tree_node*, tree_node*, gimple_statement_base*, bool) (tree-chrec.c:1357) ==19414== by 0xD2FAB1: interpret_rhs_expr(loop*, gimple_statement_base*, tree_node*, tree_node*, tree_code, tree_node*) (tree-scalar-evolution.c:1794) ==19414== by 0xD2BB86: interpret_gimple_assign (tree-scalar-evolution.c:1916) ==19414== by 0xD2BB86: analyze_scalar_evolution_1(loop*, tree_node*, tree_node*) (tree-scalar-evolution.c:1998) ==19414== by 0xD2C477: analyze_scalar_evolution(loop*, tree_node*) (tree-scalar-evolution.c:2053) ==19414== by 0xD3065A: analyze_scalar_evolution_in_loop(loop*, loop*, tree_node*, bool*) (tree-scalar-evolution.c:2149) ==19414== by 0xD307BF: simple_iv(loop*, loop*, tree_node*, affine_iv*, bool) (tree-scalar-evolution.c:3244) ==19414== by 0xDA0AB8: find_givs_in_stmt_scev (tree-ssa-loop-ivopts.c:1175) ==19414== by 0xDA0AB8: find_givs_in_stmt (tree-ssa-loop-ivopts.c:1199) ==19414== by 0xDA0AB8: find_givs_in_bb (tree-ssa-loop-ivopts.c:1213) ==19414== by 0xDA0AB8: find_givs (tree-ssa-loop-ivopts.c:1226) ==19414== by 0xDA0AB8: find_induction_variables(ivopts_data*) (tree-ssa-loop-ivopts.c:1242) ==19414== by 0xDA4139: tree_ssa_iv_optimize_loop(ivopts_data*, loop*) (tree-ssa-loop-ivopts.c:6953) ==19414== by 0xDA62AF: tree_ssa_iv_optimize() (tree-ssa-loop-ivopts.c:7012) ==19414== by 0xDBA750: (anonymous namespace)::pass_iv_optimize::execute(function*) (tree-ssa-loop.c:471) ==19414== by 0xB5E82E: execute_one_pass(opt_pass*) (passes.c:2311) ==19414== by 0xB5ECA5: execute_pass_list_1(opt_pass*) [clone .constprop.73] (passes.c:2363) ==19414== by 0xB5ECB7: execute_pass_list_1(opt_pass*) [clone .constprop.73] (passes.c:2364) ==19414== by 0xB5ECB7: execute_pass_list_1(opt_pass*) [clone .constprop.73] (passes.c:2364) ==19414== by 0xB5ECF8: execute_pass_list(function*, opt_pass*) (passes.c:2374) ==19414== by 0x83381B: cgraph_node::expand() (cgraphunit.c:1798) ==19414== by 0x834FD8: expand_all_functions (cgraphunit.c:1934) ==19414== by 0x834FD8: symbol_table::compile() (cgraphunit.c:2284) ==19414== by 0x836A47: symbol_table::finalize_compilation_unit() (cgraphunit.c:2361) ==19414== by 0x6D7AEA: c_write_global_declarations() (c-decl.c:10778) ==19414== by 0xC581F3: compile_file() (toplev.c:584) ==19414== by 0x6BA345: do_compile (toplev.c:2018) ==19414== by 0x6BA345: toplev::main(int, char**) (toplev.c:2115) ==19414== by 0x6BB148: main (main.c:38) ==19414== Address 0xa4 is not stack'd, malloc'd or (recently) free'd ==19414== testcase.c: In function 'foo': testcase.c:6:1: internal compiler error: Segmentation fault foo () ^ Please submit a full bug report, with preprocessed source if appropriate. See for instructions. Tested revisions: r219067 - ICE 4_9 r219040 - OK