https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118614
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This has nothing to do with naked. Rather it has to do with `Specifying Registers for Local Variables`. https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Local-Register-Variables.html ``` Defining a register variable does not reserve the register. Other than when invoking the Extended asm, the contents of the specified register are not guaranteed. ``` That is this is an invalid use of them.