This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/47849] ICE: SIGSEGV in find_edge (cfganal.c:491) with -ftree-loop-if-convert -fno-tree-reassoc
- From: "zsojka at seznam dot cz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 22 Feb 2011 16:17:16 +0000
- Subject: [Bug tree-optimization/47849] ICE: SIGSEGV in find_edge (cfganal.c:491) with -ftree-loop-if-convert -fno-tree-reassoc
- Auto-submitted: auto-generated
- References: <bug-47849-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47849
Zdenek Sojka <zsojka at seznam dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Known to fail| |4.6.0
--- Comment #1 from Zdenek Sojka <zsojka at seznam dot cz> 2011-02-22 16:17:09 UTC ---
Originally, it failed with:
(testcase is testsuite/gcc.target/i386/avx-vpcmpistri-1.c)
$ gcc -O2 -mavx -ftree-loop-if-convert -fno-tree-reassoc avx-vpcmpistri-1.i
avx-vpcmpistri-1.i: In function 'cmp_flags.constprop.1':
avx-vpcmpistri-1.i:5573:1: internal compiler error: in forward_edge_to_pdom, at
tree-ssa-dce.c:1064
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=0x117f638 "/mnt/svn/gcc-trunk/gcc/tree-ssa-dce.c",
line=1064, function=0x117fd60 "forward_edge_to_pdom")
at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892
#1 0x0000000000986ec6 in forward_edge_to_pdom (i=0x7fffffffd670,
bb=0x7ffff7f32548) at /mnt/svn/gcc-trunk/gcc/tree-ssa-dce.c:1064
#2 remove_dead_stmt (i=0x7fffffffd670, bb=0x7ffff7f32548) at
/mnt/svn/gcc-trunk/gcc/tree-ssa-dce.c:1113
#3 0x00000000009870f9 in eliminate_unnecessary_stmts () at
/mnt/svn/gcc-trunk/gcc/tree-ssa-dce.c:1203
#4 0x000000000098957f in perform_tree_ssa_dce (aggressive=1 '\001') at
/mnt/svn/gcc-trunk/gcc/tree-ssa-dce.c:1450
#5 0x00000000007f6e86 in execute_one_pass (pass=0x178ee30) at
/mnt/svn/gcc-trunk/gcc/passes.c:1556
#6 0x00000000007f7185 in execute_pass_list (pass=0x178ee30) at
/mnt/svn/gcc-trunk/gcc/passes.c:1611
#7 0x00000000007f7197 in execute_pass_list (pass=0x163bd80) at
/mnt/svn/gcc-trunk/gcc/passes.c:1612
#8 0x0000000000939fd6 in tree_rest_of_compilation (fndecl=0x7ffff5819e00) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:422
#9 0x0000000000b01e82 in cgraph_expand_function (node=0x7ffff5916b00) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1576
#10 0x0000000000b045ca in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1635
#11 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1899
#12 0x0000000000b04b4a in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1096
#13 0x000000000050974c in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:9872
#14 0x00000000008e2f78 in compile_file (argc=16, argv=0x7fffffffda38) at
/mnt/svn/gcc-trunk/gcc/toplev.c:591
#15 do_compile (argc=16, argv=0x7fffffffda38) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1900
#16 toplev_main (argc=16, argv=0x7fffffffda38) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1963
#17 0x00007ffff6446bbd in __libc_start_main () from /lib/libc.so.6
#18 0x00000000004f02fd in _start ()
The backtrace is very similiar, so it is probably the same problem.
Apart from that, running testsuite with "-ftree-loop-if-convert
-fno-tree-reassoc" resulted in ~177 exec failures - it is probably already
reported as PR47770.