]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
gas: sframe: handle .cfi_same_value
authorIndu Bhagat <indu.bhagat@oracle.com>
Mon, 26 May 2025 16:40:39 +0000 (09:40 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Mon, 26 May 2025 16:51:36 +0000 (09:51 -0700)
commit5bd7ac079aeeec1a2d87fb2d24dab60a135b387f
tree08b25be793700d0ea9b3cb6efce48d8fe73c90e8
parent2c29fd2026b7ec8eeb29ac0fe17a7ac11af9f2d9
gas: sframe: handle .cfi_same_value

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.

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/gen-sframe.c
gas/testsuite/gas/cfi-sframe/cfi-sframe-common-11.d [new file with mode: 0644]
gas/testsuite/gas/cfi-sframe/cfi-sframe-common-11.s [new file with mode: 0644]
gas/testsuite/gas/cfi-sframe/cfi-sframe.exp