The testcase gcc.dg/vect/no-tree-dom-vect-bug.c ICEs on i386-linux when
compiled as follows:

gcc no-tree-dom-vect-bug.c -O2 -fno-tree-dominator-opts -ftree-vectorize -msse

no-tree-dom-vect-bug.c: In function âmain1â:
no-tree-dom-vect-bug.c:15: internal compiler error: in expand_simple_binop, at
optabs.c:1192

This happens somewhere between these passes:
no-tree-dom-vect-bug.c.036t.release_ssa
no-tree-dom-vect-bug.c.044t.apply_inline
(maybe when the vectorized main1 is inlined into main?) 

gdb traceback:
    function=0x8703852 "expand_simple_binop") at ../../gcc/gcc/diagnostic.c:656
656       internal_error ("in %s, at %s:%d", function, trim_filename (file),
line);
(gdb) backtrace
#0  fancy_abort (file=0x8703282 "../../gcc/gcc/optabs.c", line=1192,
    function=0x8703852 "expand_simple_binop") at ../../gcc/gcc/diagnostic.c:656
#1  0x08271467 in expand_simple_binop (mode=Variable "mode" is not available.
) at ../../gcc/gcc/optabs.c:1192
#2  0x081a2a3f in force_operand (value=0xb7d01d98, target=0xb7a9d960)
    at ../../gcc/gcc/expr.c:6069
#3  0x08622a4d in move_invariant_reg (loop=0xa363f60, invno=0)
    at ../../gcc/gcc/loop-invariant.c:1180
#4  0x086236bd in move_loop_invariants () at
../../gcc/gcc/loop-invariant.c:1242
#5  0x08621757 in rtl_move_loop_invariants () at ../../gcc/gcc/loop-init.c:256
#6  0x082775c6 in execute_one_pass (pass=0x87ad8a0) at
../../gcc/gcc/passes.c:1058
#7  0x082777b7 in execute_pass_list (pass=0x87ad8a0) at
../../gcc/gcc/passes.c:1110
#8  0x082777ca in execute_pass_list (pass=0x87ad7e0) at
../../gcc/gcc/passes.c:1111
#9  0x082777ca in execute_pass_list (pass=0x87aab60) at
../../gcc/gcc/passes.c:1111
#10 0x08356638 in tree_rest_of_compilation (fndecl=0xb7ce9a80)
    at ../../gcc/gcc/tree-optimize.c:412
#11 0x0808db8c in c_expand_body (fndecl=0xb7ce9a80) at
../../gcc/gcc/c-common.c:4285
#12 0x084b4ab1 in cgraph_expand_function (node=0xb7c1b700)
    at ../../gcc/gcc/cgraphunit.c:1015
#13 0x084b6e96 in cgraph_optimize () at ../../gcc/gcc/cgraphunit.c:1084
#14 0x0805b4df in c_write_global_declarations () at ../../gcc/gcc/c-decl.c:7930
#15 0x082f5bd6 in toplev_main (argc=20, argv=0xbfd26434) at
../../gcc/gcc/toplev.c:1063
#16 0x080d5e02 in main (argc=Cannot access memory at address 0x1
) at ../../gcc/gcc/main.c:35
(gdb) up
#2  0x081a2a3f in force_operand (value=0xb7d01d98, target=0xb7a9d960)
    at ../../gcc/gcc/expr.c:6069
6069              return expand_simple_binop (GET_MODE (value), code, op1,
op2,
(gdb) p code
$1 = VEC_SELECT


-- 
           Summary: ICE with -fno-tree-dominator-opts -ftree-vectorize -msse
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dorit at il dot ibm dot com
 GCC build triplet: i386-linux
  GCC host triplet: i386-linux
GCC target triplet: i386-linux


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

Reply via email to