https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128287

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #1)
> I think only
> 
> 1. Add `Optimization` to `fzero-call-used-regs=` in
> `gcc/common.opt:3657-3660`.
> 
> is appropriate.

But it might not actually work.

; What subset of registers should be zeroed on function return
Variable
unsigned int flag_zero_call_used_regs

is what would need saving to make this truly per function.  Option 2.
would work but it would force all TUs to have the same (or one random)
-fzero-call-used-regs= setting.

Good test coverage is required.

Reply via email to