https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805
--- Comment #5 from Sandor Zsuga ---
I received a test report with avr-gcc 8.1.0 , -O2 optimization level: The
behavior is present ( https://www.avrfreaks.net/comment/2477081#comment-2477081
).
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805
--- Comment #4 from Sandor Zsuga ---
I tried it with the package offered by Microchip, which has avr-gcc 5.4.0, the
behavior is the same, bug is present.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805
--- Comment #3 from Sandor Zsuga ---
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 wo
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85805
--- Comment #2 from Sandor Zsuga ---
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").
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: sandor.zsuga at jubatian dot com
Target Milestone: ---
GCC version:
avr-gcc (GCC) 4.8.1
Compiling with either -O1 or -O2 optimizations enabled, tested with some ATMega
and XMega targets. Test