Created attachment 615119 [details] ccSQoup9.out file (requested to attach) Description of problem: Bug in C compiler Here is the C code #include<stdio.h> int main() { int i,j,a,b,p; a = 997; b = 23; p = 1048573; for( i=0; i<10000; i++ ) { a = a+b; for( j=0; j<10000; j++ ) { b ++; a += a*b; } } printf("a=%d\n",a); } Steps to Reproduce: 1. compile with cc -O3 <file.c> Actual results: divmul.c: In function ‘main’: divmul.c:3:5: internal compiler error: in vect_create_epilog_for_reduction, at tree-vect-loop.c:3739 Please submit a full bug report, with preprocessed source if appropriate. Expected results: compile with no errors Additional info: It compiles okay with other orderings of code e.g. #include<stdio.h> int main() { int i,j,a,b,p; a = 997; b = 23; p = 1048573; for( i=0; i<10000; i++ ) { for( j=0; j<10000; j++ ) { b ++; a += a*b; } a = a+b; } printf("a=%d\n",a); }
Fixed in GCC 4.7, not going to update GCC 4.6 in F16 this late.