https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121973
Jeffrey A. Law <law at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution|--- |WONTFIX
--- Comment #7 from Jeffrey A. Law <law at gcc dot gnu.org> ---
Behaving as expected. While I understand what your expectations are WRT naked
funtions, they don't actually bypass the various passes of the compiler. So
things like copies may be inserted to handle arguments, return values, value
shuffling for asms, etc. nops may be inserted for debugging purposes, etc.
Essentially GCC is behaving per design.