http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52250
Bug #: 52250 Summary: [4.7 Regression] ICE: in sel_remove_bb, at sel-sched-ir.c:5213 with -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -fselective-scheduling2 and other flags Classification: Unclassified Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Host: x86_64-pc-linux-gnu Target: x86_64-pc-linux-gnu Created attachment 26661 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=26661 reduced testcase Once again an ICE with insane compiler flags. Compiler output: $ gcc -O -ftree-pre -fno-guess-branch-probability -freorder-blocks -fschedule-insns2 -fsel-sched-pipelining -fsel-sched-pipelining-outer-loops -fselective-scheduling2 -fno-tree-dominator-opts -fno-tree-forwprop testcase.f testcase.f: In function 'foo': testcase.f:12:0: internal compiler error: in sel_remove_bb, at sel-sched-ir.c:5213 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. (gdb) bt #0 fancy_abort (file=0x130f4a0 "/mnt/svn/gcc-trunk/gcc/sel-sched-ir.c", line=5213, function=0x13100a0 "sel_remove_bb") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:898 #1 0x0000000000a06c41 in sel_remove_bb (bb=0x7ffff5ac6680, remove_from_cfg_p=<optimized out>) at /mnt/svn/gcc-trunk/gcc/sel-sched-ir.c:5213 #2 0x0000000000a0f237 in maybe_tidy_empty_bb (bb=0x7ffff5ac6680) at /mnt/svn/gcc-trunk/gcc/sel-sched-ir.c:3753 #3 0x0000000000a0f639 in tidy_control_flow (xbb=0x7ffff5ac6680, full_tidying=true) at /mnt/svn/gcc-trunk/gcc/sel-sched-ir.c:3776 #4 0x0000000000a0ff46 in sel_remove_insn (insn=0x7ffff5bc8d38, only_disconnect=false, full_tidying=true) at /mnt/svn/gcc-trunk/gcc/sel-sched-ir.c:3923 #5 0x0000000000a1040a in return_nop_to_pool (nop=0x7ffff5bc8d38, full_tidying=<optimized out>) at /mnt/svn/gcc-trunk/gcc/sel-sched-ir.c:1061 #6 0x0000000000a254ba in remove_temp_moveop_nops (full_tidying=true) at /mnt/svn/gcc-trunk/gcc/sel-sched.c:4991 #7 schedule_expr_on_boundary (bnd=0x1ad0fb0, expr_vliw=0x1ad1910, seqno=-1) at /mnt/svn/gcc-trunk/gcc/sel-sched.c:5467 #8 0x0000000000a26eb4 in fill_insns (scheduled_insns_tailpp=<synthetic pointer>, seqno=-1, fence=<optimized out>) at /mnt/svn/gcc-trunk/gcc/sel-sched.c:5584 #9 schedule_on_fences (scheduled_insns_tailpp=<synthetic pointer>, max_seqno=9, fences=0x1ad0cd8) at /mnt/svn/gcc-trunk/gcc/sel-sched.c:7343 #10 sel_sched_region_2 (orig_max_seqno=21) at /mnt/svn/gcc-trunk/gcc/sel-sched.c:7477 #11 0x0000000000a2aa55 in sel_sched_region_1 () at /mnt/svn/gcc-trunk/gcc/sel-sched.c:7516 #12 sel_sched_region (rgn=1) at /mnt/svn/gcc-trunk/gcc/sel-sched.c:7617 #13 0x0000000000a2c2ba in run_selective_scheduling () at /mnt/svn/gcc-trunk/gcc/sel-sched.c:7693 #14 0x00000000009f90f6 in rest_of_handle_sched2 () at /mnt/svn/gcc-trunk/gcc/sched-rgn.c:3515 #15 0x0000000000968d75 in execute_one_pass (pass=0x1852b00) at /mnt/svn/gcc-trunk/gcc/passes.c:2081 #16 0x0000000000969135 in execute_pass_list (pass=0x1852b00) at /mnt/svn/gcc-trunk/gcc/passes.c:2136 #17 0x0000000000969147 in execute_pass_list (pass=0x1852100) at /mnt/svn/gcc-trunk/gcc/passes.c:2137 #18 0x0000000000969147 in execute_pass_list (pass=0x1852160) at /mnt/svn/gcc-trunk/gcc/passes.c:2137 #19 0x0000000000acb4ee in tree_rest_of_compilation (fndecl=0x7ffff5bb5300) at /mnt/svn/gcc-trunk/gcc/tree-optimize.c:422 #20 0x000000000071da4a in cgraph_expand_function (node=0x7ffff5a95900) at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1831 #21 0x000000000071f93c in cgraph_expand_all_functions () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1898 #22 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2212 #23 0x000000000071ff8a in cgraph_finalize_compilation_unit () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1338 #24 0x0000000000912fed in write_global_declarations () at /mnt/svn/gcc-trunk/gcc/langhooks.c:303 #25 0x0000000000a5dc1c in compile_file () at /mnt/svn/gcc-trunk/gcc/toplev.c:573 #26 do_compile () at /mnt/svn/gcc-trunk/gcc/toplev.c:1938 #27 toplev_main (argc=24, argv=0x7fffffffd628) at /mnt/svn/gcc-trunk/gcc/toplev.c:2014 #28 0x00007ffff61cc09d in __libc_start_main () from /lib64/libc.so.6 #29 0x0000000000584ea1 in _start () Tested revisions: r184192 - crash r180540 - crash r178498 - OK 4.6 r180325 - OK