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

           Summary: ICE: in gimple_redirect_edge_and_branch_force, at
                    tree-cfg.c:5003 with -O -fgraphite-identity
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz
                CC: s...@gcc.gnu.org
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 22862
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22862
reduced testcase (from gfortran.dg/debug/pr46576.f)

Compiler output:
$ gcc -O -fgraphite-identity testcase.f 
testcase.f:3.72:

      ASSIGN 801 TO I800 ! { dg-warning "Deleted feature: ASSIGN" "Delet
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
testcase.f:12.72:

            ASSIGN 641 to I640 ! { dg-warning "Deleted feature: ASSIGN" 
                                                                        1
Warning: Deleted feature: ASSIGN statement at (1)
testcase.f:19.16:

      GOTO I640 ! { dg-warning "Deleted feature: Assigned" "Assigned GO 
                1
Warning: Deleted feature: Assigned GOTO statement at (1)
testcase.f:22.16:

      GOTO I800 ! { dg-warning "Deleted feature: Assigned" "Assigned GO 
                1
Warning: Deleted feature: Assigned GOTO statement at (1)
testcase.f: In function 'MAIN__':
testcase.f:1:0: internal compiler error: in
gimple_redirect_edge_and_branch_force, at tree-cfg.c:5003
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=0x11cfb08 "/home/smatz/gcc-trunk/gcc/tree-cfg.c",
line=5003, function=0x11d27a0 "gimple_redirect_edge_and_branch_force")
    at /home/smatz/gcc-trunk/gcc/diagnostic.c:892
#1  0x000000000094ae39 in gimple_redirect_edge_and_branch_force (e=<value
optimized out>, dest=<value optimized out>)
    at /home/smatz/gcc-trunk/gcc/tree-cfg.c:5003
#2  gimple_redirect_edge_and_branch_force (e=<value optimized out>, dest=<value
optimized out>) at /home/smatz/gcc-trunk/gcc/tree-cfg.c:5000
#3  0x000000000064be92 in redirect_edge_and_branch_force (e=0x7ffff5ccd9c0,
dest=0x7ffff5cdbc30) at /home/smatz/gcc-trunk/gcc/cfghooks.c:400
#4  0x000000000064c961 in make_forwarder_block (bb=0x7ffff5cdbc30,
redirect_edge_p=0x1034f90 <sd_region_without_exit>, new_bb_cbk=0)
    at /home/smatz/gcc-trunk/gcc/cfghooks.c:763
#5  0x0000000001037553 in create_single_exit_edge (regions=0x1861320) at
/home/smatz/gcc-trunk/gcc/graphite-scop-detection.c:938
#6  create_sese_edges (regions=0x1861320) at
/home/smatz/gcc-trunk/gcc/graphite-scop-detection.c:1008
#7  0x0000000001037a5a in build_scops (scops=0x7fffffffd7c8) at
/home/smatz/gcc-trunk/gcc/graphite-scop-detection.c:1306
#8  0x0000000001029a27 in graphite_transform_loops () at
/home/smatz/gcc-trunk/gcc/graphite.c:254
#9  0x0000000000a159d7 in graphite_transforms () at
/home/smatz/gcc-trunk/gcc/tree-ssa-loop.c:296
#10 0x000000000084fd26 in execute_one_pass (pass=0x16b2a00) at
/home/smatz/gcc-trunk/gcc/passes.c:1553
#11 0x0000000000850015 in execute_pass_list (pass=0x16b2a00) at
/home/smatz/gcc-trunk/gcc/passes.c:1608
#12 0x0000000000850027 in execute_pass_list (pass=0x16b2a60) at
/home/smatz/gcc-trunk/gcc/passes.c:1609
#13 0x0000000000850027 in execute_pass_list (pass=0x16b2d00) at
/home/smatz/gcc-trunk/gcc/passes.c:1609
#14 0x0000000000850027 in execute_pass_list (pass=0x16b1f20) at
/home/smatz/gcc-trunk/gcc/passes.c:1609
#15 0x0000000000990276 in tree_rest_of_compilation (fndecl=0x7ffff7fc8d00) at
/home/smatz/gcc-trunk/gcc/tree-optimize.c:422
#16 0x0000000000b55922 in cgraph_expand_function (node=0x7ffff5ccc000) at
/home/smatz/gcc-trunk/gcc/cgraphunit.c:1508
#17 0x0000000000b57ffa in cgraph_expand_all_functions () at
/home/smatz/gcc-trunk/gcc/cgraphunit.c:1567
#18 cgraph_optimize () at /home/smatz/gcc-trunk/gcc/cgraphunit.c:1827
#19 0x0000000000b5857a in cgraph_finalize_compilation_unit () at
/home/smatz/gcc-trunk/gcc/cgraphunit.c:1031
#20 0x0000000000808fed in write_global_declarations () at
/home/smatz/gcc-trunk/gcc/langhooks.c:303
#21 0x0000000000939a46 in compile_file (argc=16, argv=0x7fffffffdb08) at
/home/smatz/gcc-trunk/gcc/toplev.c:591
#22 do_compile (argc=16, argv=0x7fffffffdb08) at
/home/smatz/gcc-trunk/gcc/toplev.c:1874
#23 toplev_main (argc=16, argv=0x7fffffffdb08) at
/home/smatz/gcc-trunk/gcc/toplev.c:1937
#24 0x00007ffff6594bbd in __libc_start_main () from /lib/libc.so.6
#25 0x00000000004fe975 in _start ()


Tested revisions:
r168296 - crash

I don't know if this is a regression or not.

Reply via email to