[Bug c/97196] Difference in output between no optimization and -O2

2020-09-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97196 Jakub Jelinek changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|

[Bug c/97196] Difference in output between no optimization and -O2

2020-09-24 Thread m.bartelsman.mejia at student dot rug.nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97196 --- Comment #2 from Miguel --- Trigger seems to be line 22, in the loop guard. If I change `while (x != 0)` to `while (x)` the program then behaves properly regardless of optimization level.

[Bug c/97196] Difference in output between no optimization and -O2

2020-09-24 Thread m.bartelsman.mejia at student dot rug.nl via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97196 Miguel changed: What|Removed |Added Summary|Difference in output|Difference in output |between