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

--- Comment #4 from Zdenek Sojka <zsojka at seznam dot cz> 2011-01-24 13:21:50 
UTC ---
Created attachment 23096
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23096
short C testcase

$ gcc -O -fno-combine-stack-adjustments -fno-dse -fno-guess-branch-probability
-foptimize-sibling-calls testcase.c
testcase.c: In function 'foo':
testcase.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 similiar to the one in comment #0:
(gdb) bt
#0  fancy_abort (file=0x10d3be8 "/mnt/svn/gcc-trunk/gcc/dominance.c", line=395,
function=0x10d3ca5 "calc_dfs_tree")
    at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892
#1  0x00000000006350d3 in calc_dfs_tree (di=0x7fffffffd4a0, reverse=0 '\000')
at /mnt/svn/gcc-trunk/gcc/dominance.c:395
#2  0x00000000006369e0 in calculate_dominance_info (dir=CDI_DOMINATORS) at
/mnt/svn/gcc-trunk/gcc/dominance.c:656
#3  0x00000000005eccad in flow_loops_find (loops=0x7ffff5d3bc60) at
/mnt/svn/gcc-trunk/gcc/cfgloop.c:386
#4  0x00000000007aa7ef in loop_optimizer_init (flags=16) at
/mnt/svn/gcc-trunk/gcc/loop-init.c:52
#5  0x0000000000fe7546 in if_convert () at /mnt/svn/gcc-trunk/gcc/ifcvt.c:4241
#6  0x0000000000fe8fe9 in rest_of_handle_if_after_reload () at
/mnt/svn/gcc-trunk/gcc/ifcvt.c:4418
#7  0x00000000007f1ba6 in execute_one_pass (pass=0x1610400) at
/mnt/svn/gcc-trunk/gcc/passes.c:1562
#8  0x00000000007f1ea5 in execute_pass_list (pass=0x1610400) at
/mnt/svn/gcc-trunk/gcc/passes.c:1617
#9  0x00000000007f1eb7 in execute_pass_list (pass=0x160ae40) at
/mnt/svn/gcc-trunk/gcc/passes.c:1618
#10 0x00000000007f1eb7 in execute_pass_list (pass=0x160aea0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1618
#11 0x00000000009341a6 in tree_rest_of_compilation (fndecl=0x7ffff5d4a000) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:422
#12 0x0000000000afa9a2 in cgraph_expand_function (node=0x7ffff5d4d000) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1522
#13 0x0000000000afd06a in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1581
#14 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1841
#15 0x0000000000afd5ea in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1042
#16 0x000000000050585c in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:9843
#17 0x00000000008dd544 in compile_file (argc=17, argv=0x7fffffffda18) at
/mnt/svn/gcc-trunk/gcc/toplev.c:591
#18 do_compile (argc=17, argv=0x7fffffffda18) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1874
#19 toplev_main (argc=17, argv=0x7fffffffda18) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1937
#20 0x00007ffff65f1bbd in __libc_start_main () from /lib/libc.so.6
#21 0x00000000004ec455 in _start ()

Reply via email to