[Bug tree-optimization/28777] Zerodetection (i != 0) compiled with -O2 don't work

2006-08-20 Thread pinskia at gcc dot gnu dot org
--- Comment #3 from pinskia at gcc dot gnu dot org 2006-08-21 05:03 --- (In reply to comment #2) > It is signed overflow being undefined and so the i == 0 test being optimized > away. > Use -fwrapv or an unsigned loop counter. And the "!= 0" is being optimized to 1 because signed overfl

[Bug tree-optimization/28777] Zerodetection (i != 0) compiled with -O2 don't work

2006-08-19 Thread rguenth at gcc dot gnu dot org
--- Comment #2 from rguenth at gcc dot gnu dot org 2006-08-19 15:26 --- It is signed overflow being undefined and so the i == 0 test being optimized away. Use -fwrapv or an unsigned loop counter. -- rguenth at gcc dot gnu dot org changed: What|Removed

[Bug tree-optimization/28777] Zerodetection (i != 0) compiled with -O2 don't work

2006-08-18 Thread pinskia at gcc dot gnu dot org
--- Comment #1 from pinskia at gcc dot gnu dot org 2006-08-18 21:08 --- This is most likely a dup of another bug which was fixed in 4.2.0. -- pinskia at gcc dot gnu dot org changed: What|Removed |Added --