http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47389
Summary: ICE: in calc_dfs_tree, at dominance.c:395 with
-fno-combine-stack-adjustments -fno-dse
-fno-tree-forwprop
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: tree-optimization
AssignedTo: [email protected]
ReportedBy: [email protected]
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
Created attachment 23055
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23055
reduced testcase
Compiler output:
$ gcc -O -fno-combine-stack-adjustments -fno-dse -fno-tree-forwprop
testcase.f90
testcase.f90: In function 'master.0.f4':
testcase.f90:7:0: 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.
(gdb) bt
#0 fancy_abort (file=0x11347c8 "/mnt/svn/gcc-trunk/gcc/dominance.c", line=395,
function=0x1134885 "calc_dfs_tree")
at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892
#1 0x0000000000697dc3 in calc_dfs_tree (di=0x7fffffffd460, reverse=0 '\000')
at /mnt/svn/gcc-trunk/gcc/dominance.c:395
#2 0x00000000006996b0 in calculate_dominance_info (dir=CDI_DOMINATORS) at
/mnt/svn/gcc-trunk/gcc/dominance.c:656
#3 0x000000000064fd3d in flow_loops_find (loops=0x7ffff5d5c0e0) at
/mnt/svn/gcc-trunk/gcc/cfgloop.c:386
#4 0x000000000080a05f in loop_optimizer_init (flags=16) at
/mnt/svn/gcc-trunk/gcc/loop-init.c:52
#5 0x00000000010460a6 in if_convert () at /mnt/svn/gcc-trunk/gcc/ifcvt.c:4241
#6 0x0000000001047af9 in rest_of_handle_if_after_reload () at
/mnt/svn/gcc-trunk/gcc/ifcvt.c:4418
#7 0x000000000084e7a6 in execute_one_pass (pass=0x16836c0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1561
#8 0x000000000084eaa5 in execute_pass_list (pass=0x16836c0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1616
#9 0x000000000084eab7 in execute_pass_list (pass=0x167e040) at
/mnt/svn/gcc-trunk/gcc/passes.c:1617
#10 0x000000000084eab7 in execute_pass_list (pass=0x167e0a0) at
/mnt/svn/gcc-trunk/gcc/passes.c:1617
#11 0x000000000098eb86 in tree_rest_of_compilation (fndecl=0x7ffff5d26000) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:422
#12 0x0000000000b53e32 in cgraph_expand_function (node=0x7ffff5d2c2c0) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1522
#13 0x0000000000b564fa 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 0x0000000000b56a7a in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1042
#16 0x00000000008079fd in write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/langhooks.c:303
#17 0x0000000000938474 in compile_file (argc=17, argv=0x7fffffffd9e8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:591
#18 do_compile (argc=17, argv=0x7fffffffd9e8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1874
#19 toplev_main (argc=17, argv=0x7fffffffd9e8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1937
#20 0x00007ffff65f1bbd in __libc_start_main () from /lib/libc.so.6
#21 0x00000000004faced in _start ()
Tested revisions:
r169065 - crash
4.5 - doesn't know -fno-combine-stack-adjustments