А на скольких он у вас не пошёл? Достаточно того, что этот код
поддерживается GCC. Навскидку не нашёл исчерпывающего перечня
архитектур с поддержкой naked. Но вот сообщение 2011г: The naked attribute is only supported by GCC on certain platforms (ARM, AVR, MCORE, RX and SPU) according to the docs:
naked: Use this attribute on the ARM, AVR, MCORE, RX and SPU ports to indicate that the specified function does not need prologue/epilogue sequences generated by the compiler. It is up to the programmer to provide these sequences. The only statements that can be safely included in naked functions are asm statements that do not have operands. All other statements, including declarations of local variables, if statements, and so forth, should be avoided. Naked functions should be used to implement the body of an assembly function, while allowing the compiler to construct the requisite function declaration for the assembler.
Разумеется, сюда добавлена и RISC-V