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 tree-optimization/31522] False overflow warning with phi nodes



------- Comment #7 from pinskia at gcc dot gnu dot org  2007-04-11 07:38 -------
> What do you think of this patch?
This patch makes cc1 go into an infinite loop for the following code (which you
semi already said why you needed the phi merge to do this):
int f(void)
{
  int i, bits = 0;
   for (i = 1; i > 0; ++i) ++bits;
  if (i > 0)  return 1;
  return bits;
}


-- 


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


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