https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805
--- Comment #2 from Sandor Zsuga <sandor.zsuga at jubatian dot com> --- Tested on a different machine: avr-gcc (GCC) 4.9.2 This is what comes with Debian Jessie. The behavior is present (function compiles to a single "ret").