New reg note REG_CFA_NORESTORE
authorAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 1 Feb 2023 07:59:41 +0000 (08:59 +0100)
committerAndreas Krebbel <krebbel@linux.ibm.com>
Wed, 1 Feb 2023 07:59:41 +0000 (08:59 +0100)
commitef5f7b89bbc352255595069eb870d6f30f1f9134
tree4f076743b14fc3cf7dd4d2b0c2906114295dbba1
parent97258480438db77e52f4b3947fa2c075b09d3fe1
New reg note REG_CFA_NORESTORE

This patch introduces a new reg note which can be used to tell the CFI
verification in dwarf2cfi that a register is stored without intending
to restore from it.

This is useful when storing e.g. register contents to the stack and
generate CFI for it although the register is not really supposed to be
restored.

gcc/ChangeLog:

* dwarf2cfi.cc (dwarf2out_frame_debug_cfa_restore): Add
EMIT_CFI parameter.
(dwarf2out_frame_debug): Add case for REG_CFA_NORESTORE.
* reg-notes.def (REG_CFA_NOTE): New reg note definition.
gcc/dwarf2cfi.cc
gcc/reg-notes.def