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

           Summary: ICE: verify_ssa failed: no immediate_use list with -O3
                    -fno-tree-vectorize
           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 23340
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23340
reduced testcase (the same as gcc.dg/pr47684.c)

Compiler output:
$ gcc -O3 -fno-tree-vectorize testcase.c
testcase.c: In function 'foo':
testcase.c:5:1: error: no immediate_use list
for SSA_NAME: D.2738_12 in statement:
D.2701_231 = PHI <pretmp.2_31(8), D.2738_12(4)>
PHI argument
D.2738_12
for PHI node
D.2701_231 = PHI <pretmp.2_31(8), D.2738_12(4)>
testcase.c:5:1: internal compiler error: verify_ssa 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=0x118c9be "no immediate_use list") at
/mnt/svn/gcc-trunk/gcc/diagnostic.c:747
#1  0x0000000000a0869a in verify_use (bb=0x7ffff5b77618, def_bb=0x7ffff5b777b8,
use_p=0x7ffff5b71760, stmt=0x7ffff5b71700, 
    check_abnormal=0 '\000', names_defined_in_bb=<value optimized out>) at
/mnt/svn/gcc-trunk/gcc/tree-ssa.c:740
#2  0x0000000000a0b737 in verify_phi_args (check_modified_stmt=0 '\000') at
/mnt/svn/gcc-trunk/gcc/tree-ssa.c:816
#3  verify_ssa (check_modified_stmt=0 '\000') at
/mnt/svn/gcc-trunk/gcc/tree-ssa.c:928
#4  0x00000000009b81a4 in verify_loop_closed_ssa (verify_ssa_p=<value optimized
out>)
    at /mnt/svn/gcc-trunk/gcc/tree-ssa-loop-manip.c:456
#5  0x00000000009b86bd in gimple_duplicate_loop_to_header_edge
(loop=0x7ffff7ecdbb0, e=0x7ffff5b82740, 
    ndupl=<value optimized out>, wont_exit=<value optimized out>, orig=<value
optimized out>, 
    to_remove=<value optimized out>, flags=1) at
/mnt/svn/gcc-trunk/gcc/tree-ssa-loop-manip.c:622
#6  0x00000000009b907e in tree_transform_and_unroll_loop (loop=0x7ffff7ecdbb0,
factor=3, exit=0x7ffff5b29400, 
    desc=<value optimized out>, transform=0x947e60
<execute_pred_commoning_cbck>, data=0x7fffffffd770)
    at /mnt/svn/gcc-trunk/gcc/tree-ssa-loop-manip.c:1046
#7  0x0000000000946cd5 in tree_predictive_commoning_loop (loop=0x7ffff7ecdbb0)
at /mnt/svn/gcc-trunk/gcc/tree-predcom.c:2541
#8  0x0000000000948061 in tree_predictive_commoning () at
/mnt/svn/gcc-trunk/gcc/tree-predcom.c:2578
#9  0x00000000009c17f7 in run_tree_predictive_commoning () at
/mnt/svn/gcc-trunk/gcc/tree-ssa-loop.c:182
#10 0x00000000007f8ac6 in execute_one_pass (pass=0x163e980) at
/mnt/svn/gcc-trunk/gcc/passes.c:1561
#11 0x00000000007f8dc5 in execute_pass_list (pass=0x163e980) at
/mnt/svn/gcc-trunk/gcc/passes.c:1616
#12 0x00000000007f8dd7 in execute_pass_list (pass=0x163eb00) at
/mnt/svn/gcc-trunk/gcc/passes.c:1617
#13 0x00000000007f8dd7 in execute_pass_list (pass=0x163dd80) at
/mnt/svn/gcc-trunk/gcc/passes.c:1617
#14 0x000000000093bbf6 in tree_rest_of_compilation (fndecl=0x7ffff5b08f00) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:422
#15 0x0000000000b03a72 in cgraph_expand_function (node=0x7ffff5b28000) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1570
#16 0x0000000000b061aa in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1629
#17 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1893
#18 0x0000000000b0672a in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1090
#19 0x000000000050974c in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:9872
#20 0x00000000008e4bc8 in compile_file (argc=14, argv=0x7fffffffdb58) at
/mnt/svn/gcc-trunk/gcc/toplev.c:591
#21 do_compile (argc=14, argv=0x7fffffffdb58) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1900
#22 toplev_main (argc=14, argv=0x7fffffffdb58) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1963
#23 0x00007ffff63ccbbd in __libc_start_main () from /lib/libc.so.6
#24 0x00000000004f0305 in _start ()


Tested revisions:
r170138 - crash
4.5 r170013 - crash (segfault, OK without checking)
4.4 r170013 - crash

Reply via email to