[Bug c/96760] Faulty optimization in nested loops with -O2

2020-08-24 Thread zhige.yu18 at imperial dot ac.uk
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96760 --- Comment #3 from Yu Zhige --- (In reply to Thomas Koenig from comment #1) > The loop > > for (a = 20; a; a++) { > > increases a, which is a char, beyond its value range, and then tests > against zero. > > This is undefined behavior. > > N4

[Bug c/96760] Faulty optimization in nested loops with -O2

2020-08-24 Thread sch...@linux-m68k.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96760 Andreas Schwab changed: What|Removed |Added Status|RESOLVED|REOPENED Last reconfirmed|

[Bug c/96760] Faulty optimization in nested loops with -O2

2020-08-24 Thread tkoenig at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96760 Thomas Koenig changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED CC|