https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105210
--- Comment #7 from David Binderman <dcb314 at hotmail dot com> --- (In reply to Martin Liška from comment #6) > I'm going to prepare a patch for next stage 1. Do you mean the smaller patch to fix the problems I reported, or a larger patch to have gcc duplicate the behaviour of clang ? I checked the assembly language output from the code in comment 2 and AFAIK the optimiser removes the pointless increment at level -O1 and above.