https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71932
--- Comment #2 from Richard Falk <RichardFalk at comcast dot net> --- Adding "-fno-move-loop-invariants" to the compilation request makes the problem go away, but I've seen some situations where even this is not sufficient. A discussion about this bug is in the following thread: http://www.avrfreaks.net/forum/atmel-studio-62-issue-pushreload-reloadc1360q where post #12 indicates that the problem exists in gcc versions from 4.8.0 to 6.1.1 but that 4.7.1 works fine.