[Bug tree-optimization/68840] Wrong code in loop optimization

2015-12-10 Thread mikpelinux at gmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68840 --- Comment #1 from Mikael Pettersson --- Your program invokes undefined behaviour by running off the end of that array. Your loop termination condition is off by one. It's also the wrong way around: you must check the index before indexing

[Bug tree-optimization/68840] Wrong code in loop optimization

2015-12-10 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68840 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---