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]
Other format: [Raw text]

[Bug middle-end/19698] [4.0 regression] Infinite loop in update_life_info


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-01-30 04:09 -------
This testcase might or might not also cause the problem on before the tree-ssa merge but it is the 
reduced from .optimize tree dump:
void FFT(int NumSamples, float *RealOut, float ar1)
{
  int i5, n, j, i, BlockEnd, BlockSize;
  float pretmp2, cm1;
  i = 0;
  do {
    RealOut[i++] = ar1 ? ar1 : 0.0;
  } while (NumSamples <= i);
  BlockEnd = 1;
  BlockSize = 2;
  do {
    cm1 = __builtin_cosf (-1.0e+0);
    j = 0;
    i5 = 0;
    goto L10;
    while (1) {
      do {
	RealOut[j++] = pretmp2;
      } while (BlockEnd > n++);
      do {
	j = i5 += BlockSize;
	if (NumSamples <= i5)
	{
	  BlockEnd = BlockSize;
	  BlockSize <<= 1;
	  goto L23432;
	}
L10:;
      } while (BlockEnd <= 0);
      pretmp2 = cm1 * ar1;
      n = 0;
    }
    L23432:;
  } while (NumSamples >= BlockSize);
}




-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19698


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