http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46465
--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> 2010-12-03 08:24:00 UTC --- Created attachment 22609 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22609 different testcase This testcase is a bit longer, but it needs simpler flags: $ gcc -O -fgcse -fno-tree-dominator-opts pr46465-2.c -wrapper=gdb,--args gcc: error: unrecognized option '-wrapper=gdb,--args' pr46465-2.c: In function 'foo': pr46465-2.c:15:1: internal compiler error: in calc_dfs_tree, at dominance.c:395 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions. Backtrace is the same as for the first testcase (and even as for PR46755): (gdb) bt #0 fancy_abort (file=0x10f5ca8 "/mnt/svn/gcc-trunk/gcc/dominance.c", line=395, function=0x10f5d65 "calc_dfs_tree") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892 #1 0x0000000000634a93 in calc_dfs_tree (di=0x7fffffffd7b0, reverse=0 '\000') at /mnt/svn/gcc-trunk/gcc/dominance.c:395 #2 0x0000000000636370 in calculate_dominance_info (dir=CDI_DOMINATORS) at /mnt/svn/gcc-trunk/gcc/dominance.c:656 #3 0x00000000005ed4ad in flow_loops_find (loops=0x167d000) at /mnt/svn/gcc-trunk/gcc/cfgloop.c:386 #4 0x000000000077f674 in ira (f=<value optimized out>) at /mnt/svn/gcc-trunk/gcc/ira.c:3168 #5 0x0000000000781580 in rest_of_handle_ira () at /mnt/svn/gcc-trunk/gcc/ira.c:3346 #6 0x00000000007eb69f in execute_one_pass (pass=0x1631ce0) at /mnt/svn/gcc-trunk/gcc/passes.c:1553 #7 0x00000000007eb965 in execute_pass_list (pass=0x1631ce0) at /mnt/svn/gcc-trunk/gcc/passes.c:1608 #8 0x00000000007eb977 in execute_pass_list (pass=0x1632200) at /mnt/svn/gcc-trunk/gcc/passes.c:1609 #9 0x000000000092bb86 in tree_rest_of_compilation (fndecl=0x7ffff5cdf000) at /mnt/svn/gcc-trunk/gcc/tree-optimize.c:422 #10 0x0000000000af13c2 in cgraph_expand_function (node=0x7ffff5ce4000) at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1508 #11 0x0000000000af399a 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 0x0000000000af3f1a in cgraph_finalize_compilation_unit () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1031 #14 0x0000000000508b8c in c_write_global_declarations () at /mnt/svn/gcc-trunk/gcc/c-decl.c:9844 #15 0x00000000008d5580 in compile_file (argc=15, argv=0x7fffffffdc48) at /mnt/svn/gcc-trunk/gcc/toplev.c:591 #16 do_compile (argc=15, argv=0x7fffffffdc48) at /mnt/svn/gcc-trunk/gcc/toplev.c:1874 #17 toplev_main (argc=15, argv=0x7fffffffdc48) at /mnt/svn/gcc-trunk/gcc/toplev.c:1937 #18 0x00007ffff6586bbd in __libc_start_main () from /lib/libc.so.6 #19 0x00000000004ef5f1 in _start ()