This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/31522] False overflow warning with phi nodes
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 11 Apr 2007 06:38:04 -0000
- Subject: [Bug tree-optimization/31522] False overflow warning with phi nodes
- References: <bug-31522-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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