[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

[Bug c/97196] New: Difference in output between no optimization and -O2, triggered by a variable wrapped in parentheses in the RHS of the assignment operator

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 Bug ID: 97196 Summary: Difference in output between no optimization and -O2, triggered by a variable wrapped in parentheses in the RHS of the assignment operator Product: gc