http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47019
Summary: [4.6 Regression] ICE: in rename_uses, at sese.c:535 with -O -ftree-pre -fgraphite-identity -fno-tree-copy-prop 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 22827 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22827 reduced testcase (from pr43097.f) Compiler output: $ gcc -O -ftree-pre -fgraphite-identity -fno-tree-copy-prop pr47019.f pr47019.f: In function 'foo': pr47019.f:1:0: internal compiler error: in rename_uses, at sese.c:535 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=0x13aabe2 "/mnt/svn/gcc-trunk/gcc/sese.c", line=535, function=0x13aae34 "rename_uses") at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892 #1 0x00000000010aa42a in rename_uses (bb=<value optimized out>, region=0x1842bf0, next_e=<value optimized out>, iv_map=0x1893720) at /mnt/svn/gcc-trunk/gcc/sese.c:535 #2 graphite_copy_stmts_from_block (bb=<value optimized out>, region=0x1842bf0, next_e=<value optimized out>, iv_map=0x1893720) at /mnt/svn/gcc-trunk/gcc/sese.c:618 #3 copy_bb_and_scalar_dependences (bb=<value optimized out>, region=0x1842bf0, next_e=<value optimized out>, iv_map=0x1893720) at /mnt/svn/gcc-trunk/gcc/sese.c:638 #4 0x000000000102b4ba in translate_clast_user (region=<value optimized out>, context_loop=0x7ffff7ecfaa0, stmt=<value optimized out>, next_e=0x7ffff5ccea80, newivs=0x7fffffffd648, newivs_index=0x1882570, bb_pbb_mapping=0x1855710, level=3, params_index=0x1882c60) at /mnt/svn/gcc-trunk/gcc/graphite-clast-to-gimple.c:947 #5 translate_clast (region=<value optimized out>, context_loop=0x7ffff7ecfaa0, stmt=<value optimized out>, next_e=0x7ffff5ccea80, newivs=0x7fffffffd648, newivs_index=0x1882570, bb_pbb_mapping=0x1855710, level=3, params_index=0x1882c60) at /mnt/svn/gcc-trunk/gcc/graphite-clast-to-gimple.c:1115 #6 0x000000000102b145 in translate_clast_for_loop (region=<value optimized out>, context_loop=0x7ffff7ecfa18, stmt=<value optimized out>, next_e=0x7ffff5cca6e0, newivs=0x7fffffffd648, newivs_index=0x1882570, bb_pbb_mapping=0x1855710, level=2, params_index=0x1882c60) at /mnt/svn/gcc-trunk/gcc/graphite-clast-to-gimple.c:1032 #7 translate_clast_for (region=<value optimized out>, context_loop=0x7ffff7ecfa18, stmt=<value optimized out>, next_e=0x7ffff5cca6e0, newivs=0x7fffffffd648, newivs_index=0x1882570, bb_pbb_mapping=0x1855710, level=2, params_index=0x1882c60) at /mnt/svn/gcc-trunk/gcc/graphite-clast-to-gimple.c:1065 #8 translate_clast (region=<value optimized out>, context_loop=0x7ffff7ecfa18, stmt=<value optimized out>, next_e=0x7ffff5cca6e0, newivs=0x7fffffffd648, newivs_index=0x1882570, bb_pbb_mapping=0x1855710, level=2, params_index=0x1882c60) at /mnt/svn/gcc-trunk/gcc/graphite-clast-to-gimple.c:1120 #9 0x000000000102b145 in translate_clast_for_loop (region=<value optimized out>, context_loop=0x7ffff7ecfe58, stmt=<value optimized out>, next_e=0x7ffff5cca6e0, newivs=0x7fffffffd648, newivs_index=0x1882570, bb_pbb_mapping=0x1855710, level=1, params_index=0x1882c60) at /mnt/svn/gcc-trunk/gcc/graphite-clast-to-gimple.c:1032 #10 translate_clast_for (region=<value optimized out>, context_loop=0x7ffff7ecfe58, stmt=<value optimized out>, next_e=0x7ffff5cca6e0, newivs=0x7fffffffd648, newivs_index=0x1882570, bb_pbb_mapping=0x1855710, level=1, params_index=0x1882c60) at /mnt/svn/gcc-trunk/gcc/graphite-clast-to-gimple.c:1065 #11 translate_clast (region=<value optimized out>, context_loop=0x7ffff7ecfe58, stmt=<value optimized out>, next_e=0x7ffff5cca6e0, newivs=0x7fffffffd648, newivs_index=0x1882570, bb_pbb_mapping=0x1855710, level=1, params_index=0x1882c60) at /mnt/svn/gcc-trunk/gcc/graphite-clast-to-gimple.c:1120 #12 0x000000000102c3d5 in gloog (scop=<value optimized out>, bb_pbb_mapping=0x1855710) at /mnt/svn/gcc-trunk/gcc/graphite-clast-to-gimple.c:1557 #13 0x00000000010294d2 in graphite_transform_loops () at /mnt/svn/gcc-trunk/gcc/graphite.c:286 #14 0x0000000000a15327 in graphite_transforms () at /mnt/svn/gcc-trunk/gcc/tree-ssa-loop.c:296 #15 0x000000000084f736 in execute_one_pass (pass=0x16b2a60) at /mnt/svn/gcc-trunk/gcc/passes.c:1553 #16 0x000000000084fa25 in execute_pass_list (pass=0x16b2a60) at /mnt/svn/gcc-trunk/gcc/passes.c:1608 #17 0x000000000084fa37 in execute_pass_list (pass=0x16b2ac0) at /mnt/svn/gcc-trunk/gcc/passes.c:1609 #18 0x000000000084fa37 in execute_pass_list (pass=0x16b2d60) at /mnt/svn/gcc-trunk/gcc/passes.c:1609 #19 0x000000000084fa37 in execute_pass_list (pass=0x16b1f20) at /mnt/svn/gcc-trunk/gcc/passes.c:1609 #20 0x000000000098fc46 in tree_rest_of_compilation (fndecl=0x7ffff7fc1e00) at /mnt/svn/gcc-trunk/gcc/tree-optimize.c:422 #21 0x0000000000b54ef2 in cgraph_expand_function (node=0x7ffff5cba000) at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1508 #22 0x0000000000b575ca in cgraph_expand_all_functions () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1567 #23 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1827 #24 0x0000000000b57b4a in cgraph_finalize_compilation_unit () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:1031 #25 0x0000000000808acd in write_global_declarations () at /mnt/svn/gcc-trunk/gcc/langhooks.c:303 #26 0x0000000000939516 in compile_file (argc=18, argv=0x7fffffffda38) at /mnt/svn/gcc-trunk/gcc/toplev.c:591 #27 do_compile (argc=18, argv=0x7fffffffda38) at /mnt/svn/gcc-trunk/gcc/toplev.c:1874 #28 toplev_main (argc=18, argv=0x7fffffffda38) at /mnt/svn/gcc-trunk/gcc/toplev.c:1937 #29 0x00007ffff6586bbd in __libc_start_main () from /lib/libc.so.6 #30 0x00000000004fe695 in _start () Tested revisions: r168061 - crash r165699 - crash r161659 - OK 4.5 r168062 - OK