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

             Bug #: 50765
           Summary: [4.7 Regression] ICE: in expand_insn, at optabs.c:7681
                    with -ftree-vectorize -fno-tree-dce
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: zso...@seznam.cz
              Host: x86_64-pc-linux-gnu
            Target: x86_64-pc-linux-gnu


Created attachment 25529
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=25529
reduced testcase

Compiler output:
$ gcc -O3 -fno-tree-dce testcase.c
testcase.c: In function 'foo':
testcase.c:1:6: internal compiler error: in expand_insn, at optabs.c:7681
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

or

$ gcc -O2 -ftree-vectorize -fno-tree-dce testcase.c
testcase.c: In function 'foo':
testcase.c:1:6: internal compiler error: in expand_insn, at optabs.c:7681
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=0x1264d78 "/mnt/svn/gcc-trunk/gcc/optabs.c", line=7681,
function=0x1265b92 "expand_insn")
    at /mnt/svn/gcc-trunk/gcc/diagnostic.c:892
#1  0x00000000008d9be6 in expand_insn (icode=Unhandled dwarf expression opcode
0xf3
) at /mnt/svn/gcc-trunk/gcc/optabs.c:7681
#2  expand_insn (icode=Unhandled dwarf expression opcode 0xf3
) at /mnt/svn/gcc-trunk/gcc/optabs.c:7677
#3  0x00000000008da7aa in expand_widen_pattern_expr (ops=0x7fffffffd6b0,
op0=0x7ffff57264a0, op1=0x0, wide_op=0x0, target=0x7ffff5726580, 
    unsignedp=0) at /mnt/svn/gcc-trunk/gcc/optabs.c:629
#4  0x000000000075d7f8 in expand_expr_real_2 (ops=0x7fffffffd6b0,
target=0x7ffff5726580, tmode=V4SImode, modifier=EXPAND_NORMAL)
    at /mnt/svn/gcc-trunk/gcc/expr.c:8683
#5  0x0000000000669ea0 in expand_gimple_stmt_1 (stmt=0x7ffff5703460) at
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:2014
#6  expand_gimple_stmt (stmt=0x7ffff5703460) at
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:2074
#7  0x000000000066b5c1 in expand_gimple_basic_block (bb=0x7ffff5687208) at
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:3814
#8  0x000000000066d54b in gimple_expand_cfg () at
/mnt/svn/gcc-trunk/gcc/cfgexpand.c:4322
#9  0x00000000008e4d78 in execute_one_pass (pass=0x179aba0) at
/mnt/svn/gcc-trunk/gcc/passes.c:2064
#10 0x00000000008e50e5 in execute_pass_list (pass=0x179aba0) at
/mnt/svn/gcc-trunk/gcc/passes.c:2119
#11 0x0000000000a3c12e in tree_rest_of_compilation (fndecl=0x7ffff5688b00) at
/mnt/svn/gcc-trunk/gcc/tree-optimize.c:420
#12 0x00000000006938ba in cgraph_expand_function (node=0x7ffff55886c0) at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1804
#13 0x000000000069580c in cgraph_expand_all_functions () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1871
#14 cgraph_optimize () at /mnt/svn/gcc-trunk/gcc/cgraphunit.c:2148
#15 0x0000000000695bfa in cgraph_finalize_compilation_unit () at
/mnt/svn/gcc-trunk/gcc/cgraphunit.c:1312
#16 0x0000000000578933 in c_write_global_declarations () at
/mnt/svn/gcc-trunk/gcc/c-decl.c:9940
#17 0x00000000009da244 in compile_file (argc=15, argv=0x7fffffffdac8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:581
#18 do_compile (argc=15, argv=0x7fffffffdac8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:1925
#19 toplev_main (argc=15, argv=0x7fffffffdac8) at
/mnt/svn/gcc-trunk/gcc/toplev.c:2001
#20 0x00007ffff6178d2d in __libc_start_main () from /lib64/libc.so.6
#21 0x000000000055c399 in _start ()


Tested revisions:
r180072 - crash
r178498 - crash
4.6 r177922 - OK

Reply via email to