]> git.feebdaed.xyz Git - 0xmirror/binutils-gdb.git/commit
gas: sframe: reset fp_reg to SFRAME_FRE_REG_INVALID
authorIndu Bhagat <indu.bhagat@oracle.com>
Wed, 24 Dec 2025 09:06:28 +0000 (01:06 -0800)
committerIndu Bhagat <indu.bhagat@oracle.com>
Wed, 24 Dec 2025 09:06:28 +0000 (01:06 -0800)
commitdce9415745899866ae85ee8d71c30bb00af339a0
treecdbc4facbafbca8e6c41c8b99a1a0fd5ca41080e
parent10804a095aba1c309c89b06793d8efd3480115fe
gas: sframe: reset fp_reg to SFRAME_FRE_REG_INVALID

It makes sense to keep all internal state related to registers
(cfa_base_reg, fp_reg) reset to SFRAME_FRE_REG_INVALID.

While at it, also make sure fp_reg state is copied over when intializing
an SFrame FRE.

gas/
* gen-sframe.c (sframe_row_entry_new): Reset to
SFRAME_FRE_REG_INVALID.
(sframe_row_entry_initialize): Copy over fp_reg too.
(sframe_xlate_do_offset): Adjust accordingly.
gas/gen-sframe.c