[PATCH,V2 4/4] gas: sframe: handle .cfi_same_value
Jan Beulich
jbeulich@suse.com
Fri May 16 11:42:47 GMT 2025
On 15.05.2025 23:06, Indu Bhagat wrote:
> Fix PR gas/32953 - sframe: incorrect handling of .cfi_same_value in gas
>
> As per documentation, .cfi_same_value indicates that the current value
> of register is the same like in the previous frame, i.e. no restoration
> needed.
>
> In some cases, SFrame has no means to encode this information. Warn and
> skip generating the SFrame FDE in those cases.
>
> gas/
> * gen-sframe.c (sframe_xlate_do_same_value): New definition.
> (sframe_do_cfi_insn): Handle DW_CFA_same_value.
> gas/testsuite/
> * gas/cfi-sframe/cfi-sframe.exp: Add new tests.
> * gas/cfi-sframe/cfi-sframe-common-11.d: New test.
> * gas/cfi-sframe/cfi-sframe-common-11.s: New test.
> * gas/cfi-sframe/cfi-sframe-x86_64-empty-5.d: New test.
> * gas/cfi-sframe/cfi-sframe-x86_64-empty-5.s: New test.
And again - okay.
Jan
More information about the Binutils
mailing list