Compiler flags:
$ gcc -O[123] -ftree-vectorize testcase.c
(-ftree-vectorize is not needed with -O3)

Tested revisions:
r160112 - crash
r160052 - OK

Valgrind output:
$ valgrind -q --trace-children=yes
/mnt/svn/gcc-trunk/binary-160112-lto-fortran/bin/gcc -O1 -ftree-vectorize
testcase.c
==31407== Invalid write of size 8
==31407==    at 0x5F41C8: remove_insn (emit-rtl.c:3859)
==31407==    by 0x97633E: expand_vselect (i386.c:29419)
==31407==    by 0x97654D: expand_vec_perm_1 (i386.c:29686)
==31407==    by 0x9A49FD: ix86_expand_vec_extract_even_odd (i386.c:30480)
==31407==    by 0xB405B0: gen_vec_extract_evenv16qi (sse.md:4644)
==31407==    by 0x71CAB8: expand_binop_directly (optabs.c:1513)
==31407==    by 0x718840: expand_binop (optabs.c:1579)
==31407==    by 0x61DC3F: expand_expr_real_2 (expr.c:8179)
==31407==    by 0x60F647: expand_expr_real_1 (expr.c:9660)
==31407==    by 0x6101AE: expand_expr_real_1 (expr.h:558)
==31407==    by 0x620844: expand_assignment (expr.h:558)
==31407==    by 0x577591: expand_gimple_stmt (cfgexpand.c:1873)
==31407==  Address 0x10 is not stack'd, malloc'd or (recently) free'd
==31407==
testcase.c: In function 'foo':
testcase.c:12:12: internal compiler error: Segmentation fault


-- 
           Summary: ICE: SIGSEGV in remove_insn (emit-rtl.c:3859) with -
                    ftree-vectorize
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: zsojka at seznam dot cz
  GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu


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

Reply via email to