[Bug tree-optimization/31522] False overflow warning with phi nodes

2007-04-17 Thread ian at airs dot com
--- Comment #11 from ian at airs dot com 2007-04-17 19:08 --- Fixed on mainline. -- ian at airs dot com changed: What|Removed |Added Status|NEW

[Bug tree-optimization/31522] False overflow warning with phi nodes

2007-04-16 Thread ian at gcc dot gnu dot org
--- Comment #10 from ian at gcc dot gnu dot org 2007-04-17 06:33 --- Subject: Bug 31522 Author: ian Date: Tue Apr 17 06:33:38 2007 New Revision: 123908 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=123908 Log: ./: PR tree-optimization/31522 * tree-vrp.c (vr_phi_

[Bug tree-optimization/31522] False overflow warning with phi nodes

2007-04-11 Thread rguenth at gcc dot gnu dot org
--- Comment #9 from rguenth at gcc dot gnu dot org 2007-04-11 09:14 --- That looks reasonable. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31522

[Bug tree-optimization/31522] False overflow warning with phi nodes

2007-04-11 Thread ian at airs dot com
--- Comment #8 from ian at airs dot com 2007-04-11 08:04 --- That's not an infinite loop, it's just a loop with 2^31 iterations. This patch takes a rather different approach. Index: tree-vrp.c === --- tree-vrp.c (revision

[Bug tree-optimization/31522] False overflow warning with phi nodes

2007-04-10 Thread pinskia 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 (

[Bug tree-optimization/31522] False overflow warning with phi nodes

2007-04-10 Thread ian at airs dot com
--- Comment #6 from ian at airs dot com 2007-04-11 07:15 --- When we pick a new range to avoid an infinite iteration, we have to pick an overflow range. This is what catches overflows like for (i = 1; i > 0; ++i) ++bits; I've experimented with only doing this in a loop, but it didn

[Bug tree-optimization/31522] False overflow warning with phi nodes

2007-04-10 Thread pinskia at gcc dot gnu dot org
--- Comment #5 from pinskia at gcc dot gnu dot org 2007-04-11 06:34 --- It turns out you have to add -Wstrict-overflow to get the warning but this is still a false warning. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added