This is the mail archive of the gcc@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]

[tree-ssa] Dce & infinite loops


Hello,

I may be wrong, but IIRC it is incorrect to remove infinite loops, as
happens currently for example for the following code:

int main(void)
{
  unsigned i;

  for (i = 1; i != 0; i+=2);

  return 0;
}

Zdenek


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