https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805
--- Comment #3 from Sandor Zsuga <sandor.zsuga at jubatian dot com> --- I don't have reasonably easy access to a newer version as it doesn't seem like there were precompiled binaries available for Linux which I could try without much hassle. If someone had one laying around, I would appreciate if he gave a go to the sample with an avr-gcc -S -O1 sample.c where sample.c contained the code above. The resulting assembly file would show whether the particular GCC version was affected.