http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47053

           Summary: [4.5/4.6 Regression] ICE: verify_flow_info failed: BB
                    2 can not throw but has an EH edge with -O
                    -fnon-call-exceptions
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 22847
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22847
reduced testcase

Compiler output:
$ gcc -O -fnon-call-exceptions pr47053.C 
pr47053.C: In function 'void foo()':
pr47053.C:17:6: error: BB 2 can not throw but has an EH edge
pr47053.C:17:6: internal compiler error: verify_flow_info failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

(gdb) bt
#0  error (gmsgid=0x12db400 "BB %i can not throw but has an EH edge") at
/mnt/svn/gcc-trunk/gcc/diagnostic.c:747
#1  0x0000000000a5b65c in verify_eh_edges (stmt=0x7ffff5d71160) at
/mnt/svn/gcc-trunk/gcc/tree-eh.c:3997
#2  0x0000000000a2fcbb in gimple_verify_flow_info () at
/mnt/svn/gcc-trunk/gcc/tree-cfg.c:4538
#3  0x0000000000733384 in verify_flow_info () at
/mnt/svn/gcc-trunk/gcc/cfghooks.c:257
#4  0x0000000000b210f0 in fini_reassoc () at
/mnt/svn/gcc-trunk/gcc/tree-ssa-reassoc.c:2247
#5  execute_reassoc () at /mnt/svn/gcc-trunk/gcc/tree-ssa-reassoc.c:2260
#6  0x000000000093a2e6 in execute_one_pass (pass=0x17baee0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1553
#7  0x000000000093a5d5 in execute_pass_list (pass=0x17baee0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1608
#8  0x000000000093a5e7 in execute_pass_list (pass=0x17b9d40) at
/mnt/svn/gcc-trunk/gcc/passes.c:1609
#9  0x0000000000a7a846 in tree_rest_of_compilation (fndecl=0x7ffff5d31b00) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:422
#10 0x0000000000c3fd72 in cgraph_expand_function (node=0x7ffff5d3bc60) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1508
#11 0x0000000000c4244a in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1567
#12 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1827
#13 0x0000000000c429ca in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1031
#14 0x00000000005b786d in cp_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/cp/decl2.c:3974
#15 0x0000000000a240b6 in compile_file (argc=15, argv=0x7fffffffdad8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:591
#16 do_compile (argc=15, argv=0x7fffffffdad8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1874
#17 toplev_main (argc=15, argv=0x7fffffffdad8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1937
#18 0x00007ffff6586bbd in __libc_start_main () from /lib/libc.so.6
#19 0x00000000004fe9ed in _start ()

Tetsted revisions:
r168200 - crash
4.5 r168062 - crash
4.4 r168062 - OK

Reply via email to