This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: internal error on loop unrolling



  In message <19991210231011N.fukuchi@is.titech.ac.jp>you write:
  > GCC internal error occurs when compile the list below with optimizing
  > option '-funroll-loops'. Without '-funroll-loops', it goes well.
  > 
  > #include <stdio.h>
  > #include <stdlib.h>
  > int m[8],b[8];
  > 
  > int main(){
  > 	int i;
  > 
  > 	for(;;){
  > 		m[0] = rand();
  > 		if(m[0] == 0){
  > 			for(i=0;i<8;i++){
  > 				m[i] = b[i];
  > 			}
  > 			break;
  > 		}
  > 	}
  > }
  > 
  > 
  > elwood#22:31~/tmp$ gcc -v --save-temps -mpentium -O3 -fomit-frame-pointer -
  > funroll-loops test.c
[ ... ]
Thanks.  This seems to be working fine in the development sources.

I have added this test to the regression testsuite.

jeff


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]