Compiler output:
$ gcc -mno-sse2 testcase.c
testcase.c: In function 'foo':
testcase.c:6:6: internal compiler error: in copy_to_mode_reg, at explow.c:635
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r160048 - crash
r153685 - crash
4.4 r158133 - crash
----- testcase.c -----
typedef __attribute__((vector_size(16))) char type;
extern void bar(type);
void foo(type x) { bar(x); }
----------------------
A bit different testcase gives:
$ gcc -mno-sse2 testcase2.c
testcase2.c: In function 'foo':
testcase2.c:4:29: internal compiler error: in emit_move_insn, at expr.c:3428
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
----- testcase2.c -----
typedef __attribute__((vector_size(16))) char type;
extern void bar(type);
void foo(void) { type x; bar(x); }
-----------------------
--
Summary: ICE: in copy_to_mode_reg, at explow.c:623 with -mno-sse2
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: target
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=44332