http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53695
Bug #: 53695 Summary: [4.8 Regression] ICE: in dfs_enumerate_from, at cfganal.c:1221 with -O2 -ftracer and labels/gotos Classification: Unclassified Product: gcc Version: 4.8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end AssignedTo: unassig...@gcc.gnu.org ReportedBy: zso...@seznam.cz Created attachment 27630 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27630 reduced testcase Compiler output: $ gcc -O2 -ftracer testcase.c testcase.c: In function 'foo': testcase.c:2:1: internal compiler error: in dfs_enumerate_from, at cfganal.c:1221 foo (const void **p) ^ Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. (gdb) bt #0 internal_error (gmsgid=0x1472ac5 "in %s, at %s:%d") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:951 #1 0x000000000116fc44 in fancy_abort (file=<optimized out>, line=1221, function=0x11f8170 "dfs_enumerate_from") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:1011 #2 0x000000000068ac0e in dfs_enumerate_from (bb=<optimized out>, reverse=1, predicate=0x6a1400 <glb_enum_p(const_basic_block, void const*)>, rslt=0x18f9ef0, rslt_max=2, data=0x7ffff5a80b28) at /mnt/svn/gcc-trunk/gcc/cfganal.c:1221 #3 0x00000000006a2964 in get_loop_body (loop=0x7ffff5a80b28) at /mnt/svn/gcc-trunk/gcc/cfgloop.c:828 #4 0x00000000006a42d0 in verify_loop_structure () at /mnt/svn/gcc-trunk/gcc/cfgloop.c:1350 #5 0x00000000008bf766 in loop_optimizer_init (flags=15) at /mnt/svn/gcc-trunk/gcc/loop-init.c:64 #6 0x00000000010e512d in analyze_function (fn=<optimized out>, ipa=<optimized out>) at /mnt/svn/gcc-trunk/gcc/ipa-pure-const.c:785 #7 0x00000000010e7839 in local_pure_const () at /mnt/svn/gcc-trunk/gcc/ipa-pure-const.c:1563 #8 0x0000000000912c55 in execute_one_pass (pass=0x19078a0) at /mnt/svn/gcc-trunk/gcc/passes.c:2164 #9 0x0000000000913015 in execute_pass_list (pass=0x19078a0) at /mnt/svn/gcc-trunk/gcc/passes.c:2219 #10 0x0000000000913027 in execute_pass_list (pass=0x177fe20) at /mnt/svn/gcc-trunk/gcc/passes.c:2220 #11 0x00000000006bf848 in expand_function (node=0x7ffff5a81750) at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1615 #12 0x00000000006c1624 in expand_all_functions () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1720 #13 compile () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2018 #14 0x00000000006c1be5 in finalize_compilation_unit () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2095 #15 0x00000000005a1020 in c_write_global_declarations () at /mnt/svn/gcc-trunk/gcc/c-decl.c:10108 #16 0x00000000009fef6c in compile_file () at /mnt/svn/gcc-trunk/gcc/toplev.c:566 #17 do_compile () at /mnt/svn/gcc-trunk/gcc/toplev.c:1870 #18 toplev_main (argc=14, argv=0x7fffffffd738) at /mnt/svn/gcc-trunk/gcc/toplev.c:1946 #19 0x00007ffff61b62ad in __libc_start_main () from /lib64/libc.so.6 #20 0x0000000000584451 in _start () Tested revisions: r188682 - crash 4.7 r188682 - OK