On 12/13/22 01:55, Andreas Krebbel via Gcc-patches wrote:
Hi,
I need a way to save registers on the stack and generate proper CFI for it.
Since I do not intend to
restore them I needed a way to tell the CFI generation step about it:
https://gcc.gnu.org/pipermail/gcc-patches/2022-November/606128.html
Is this ok for mainline?
Presumably there's validation bits that want to validate that everything
saved eventually gets restored?
There's only one call to dwarf2out_frame_debug_cfa_restore, so ISTM that
providing an initializer for the argument isn't needed and just creates
an overload (and associated code) that isn't needed. Why not just
remove the default initializer?
Ok with that change or a good reason why you need to keep the initializer.
jeff