Command line:
gcc -O2 -ftree-vectorize testcase.c

Tested versions:
r157965 - crash
alpha20100401 - crash (disabled checking)
4.4.3, 4.3.4 - crash (gentoo, disabled checking)
4.2.4, 4.1.2 - OK (gentoo, disabled checking)

Compiler output - with checking:
$ gcc -O2 -ftree-vectorize testcase.c
testcase.c: In function 'foo':
testcase.c:10:1: internal compiler error: in reload, at reload1.c:1188

Without checking:
$ gcc-4.5.0-alpha20100401 -O2 -ftree-vectorize testcase.c
testcase.c: In function 'foo':
testcase.c:10:1: error: unrecognizable insn:
(insn 38 37 8 2 testcase.c:4 (set (reg:DI 22 xmm1)
        (plus:DI (reg:DI 22 xmm1)
            (mem/u/c/i:DI (symbol_ref/u:DI ("*.LC0") [flags 0x2]) [4 S8 A64])))
-1 (expr_list:REG_EQUIV (plus:DI (reg/f:DI 7 sp)
            (mem/u/c/i:DI (symbol_ref/u:DI ("*.LC0") [flags 0x2]) [4 S8 A64]))
        (nil)))
testcase.c:10:1: internal compiler error: in extract_insn, at recog.c:2103


-- 
           Summary: ICE: in reload, at reload1.c:1188 with -O2 -ftree-
                    vectorize and empty struct
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: rtl-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=43653

Reply via email to