http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48133
Summary: [4.5/4.6/4.7 Regression] ICE: in get_loop_body, at cfgloop.c:831 with -O -funroll-loops -fthread-jumps -fno-tree-ch 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 23662 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23662 reduced testcase (from gcc.dg/pr47899.c) +++ This bug was initially created as a clone of Bug #47899 +++ Compiler output: $ gcc -O -funroll-loops -fthread-jumps -fno-tree-ch testcase.c testcase.c: In function 'foo': testcase.c:11:1: internal compiler error: in get_loop_body, at cfgloop.c:831 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=0x10f5258 "/mnt/svn/gcc-4_6/gcc/cfgloop.c", line=831, function=0x10f5792 "get_loop_body") at /mnt/svn/gcc-4_6/gcc/diagnostic.c:892 #1 0x00000000005f1511 in get_loop_body (loop=0x7ffff7ed2d48) at /mnt/svn/gcc-4_6/gcc/cfgloop.c:831 #2 0x00000000005f2fe8 in verify_loop_structure () at /mnt/svn/gcc-4_6/gcc/cfgloop.c:1343 #3 0x00000000007bffbc in peel_loops_completely (flags=2) at /mnt/svn/gcc-4_6/gcc/loop-unroll.c:259 #4 unroll_and_peel_loops (flags=2) at /mnt/svn/gcc-4_6/gcc/loop-unroll.c:165 #5 0x00000000007afc48 in rtl_unroll_and_peel_loops () at /mnt/svn/gcc-4_6/gcc/loop-init.c:332 #6 0x00000000007f6b46 in execute_one_pass (pass=0x1639e20) at /mnt/svn/gcc-4_6/gcc/passes.c:1556 #7 0x00000000007f6e45 in execute_pass_list (pass=0x1639e20) at /mnt/svn/gcc-4_6/gcc/passes.c:1611 #8 0x00000000007f6e57 in execute_pass_list (pass=0x163a000) at /mnt/svn/gcc-4_6/gcc/passes.c:1612 #9 0x00000000007f6e57 in execute_pass_list (pass=0x163a220) at /mnt/svn/gcc-4_6/gcc/passes.c:1612 #10 0x0000000000939d76 in tree_rest_of_compilation (fndecl=0x7ffff5bcef00) at /mnt/svn/gcc-4_6/gcc/tree-optimize.c:422 #11 0x0000000000b01c12 in cgraph_expand_function (node=0x7ffff5bec000) at /mnt/svn/gcc-4_6/gcc/cgraphunit.c:1576 #12 0x0000000000b0435a in cgraph_expand_all_functions () at /mnt/svn/gcc-4_6/gcc/cgraphunit.c:1635 #13 cgraph_optimize () at /mnt/svn/gcc-4_6/gcc/cgraphunit.c:1899 #14 0x0000000000b048da in cgraph_finalize_compilation_unit () at /mnt/svn/gcc-4_6/gcc/cgraphunit.c:1096 #15 0x00000000005097fc in c_write_global_declarations () at /mnt/svn/gcc-4_6/gcc/c-decl.c:9872 #16 0x00000000008e2d08 in compile_file (argc=16, argv=0x7fffffffdc28) at /mnt/svn/gcc-4_6/gcc/toplev.c:591 #17 do_compile (argc=16, argv=0x7fffffffdc28) at /mnt/svn/gcc-4_6/gcc/toplev.c:1900 #18 toplev_main (argc=16, argv=0x7fffffffdc28) at /mnt/svn/gcc-4_6/gcc/toplev.c:1963 #19 0x00007ffff648cb6d in __libc_start_main () from /lib/libc.so.6 #20 0x00000000004f03b1 in _start () Tested revisions: r170964 - crash 4.6 r170955 - crash 4.5 r170955 - crash 4.4 r170955 - OK