http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26128
Richard Guenther <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Known to work| |4.5.4, 4.8.0 Resolution| |FIXED Target Milestone|--- |4.5.0 Known to fail| |4.4.6 --- Comment #6 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-07-13 14:05:50 UTC --- Making the testcase actually compile like char a[16] __attribute__((aligned(16))) = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; char b[16] __attribute__((aligned(16))) = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16}; char c[16] __attribute__((aligned(16))); int main() { int i; for(i = 0; i<16; i++) { c[i] = a[i] + b[i]; } for(i = 0; i<16; i++) { printf("%i ", c[i]); } } shows: c> /space/rguenther/install/gcc-4.5.4/bin/gcc -O3 t.c -ftree-vectorizer-verbose=1 t.c: In function 'main': t.c:18:7: warning: incompatible implicit declaration of built-in function 'printf' t.c:11: note: LOOP VECTORIZED. t.c:7: note: vectorized 1 loops in function. Thus fixed, in GCC 4.5.