Testcase: #include <stdlib.h> __attribute__((vector_size(16))) int a = {1, 2};
int main(void) { int *b = (int*)&a; if (b[0] != 1) abort (); if (b[1] != 2) abort (); if (b[2] != 0) abort (); if (b[3] != 0) abort (); return 0; } ---- The VECTOR_CST has only two elements. -- Summary: vector constant not fully outputed Product: gcc Version: 4.2.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: c AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29091