https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96061
--- Comment #2 from Alexander Popov <alex.popov at linux dot com> --- > We are working on -fzero-call-used-regs: H.J. Lu, thanks for the information! However, this flag can't be used per-function, like the attribute. So supporting 'no_caller_saved_registers' attribute for aarch64 (and maybe other architectures) is desired anyway. Thanks!