https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92086
Julian Stecklina <js at alien8 dot de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |js at alien8 dot de --- Comment #6 from Julian Stecklina <js at alien8 dot de> --- I also see this suboptimal behavior in my C++ RISC-V embedded program with functions marked [[noreturn]] (and compiling with -fno-exceptions). The prologue saves callee-saved registers even though this will never be useful. This both wastes precious stack and ROM space. I'd love to have a compiler option to turn this off.