https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98663 --- Comment #5 from charliepdts at gmx dot at --- Hi Jakub, thanks for the detailed description and the insights as to the assumptions that the compiler uses when optimizing code like this.