https://sourceware.org/bugzilla/show_bug.cgi?id=33170

--- Comment #10 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The binutils-2_45-branch branch has been updated by Indu Bhagat
<ibha...@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9105eee3bc0141a7cd043063308bcab0d7ced833

commit 9105eee3bc0141a7cd043063308bcab0d7ced833
Author: Indu Bhagat <indu.bha...@oracle.com>
Date:   Thu Jul 17 15:17:36 2025 -0700

    gas: sframe: fix PR gas/33170

    SFrame generation code assumes that since DW_CFA_restore means
    restoration of the state of the register to the one at the beginning of
    the function, there must be a state to restore to (hence the gas_assert
    (cie_fre)).

    This assumption needs adjustment.  DW_CFA_restore may be present in the
    very beginning of a (e.g., cold) function, with no initialized state for
    SFrame functions to restore to.

    gas/
            PR gas/33170
            * gas/gen-sframe.c (sframe_xlate_do_restore): Use current FRE if
            CIE FRE is not yet setup.
    gas/testsuite/
            PR gas/33170
            * gas/cfi-sframe/cfi-sframe.exp: New test.
            * gas/cfi-sframe/cfi-sframe-x86_64-pr33170.d: New test.
            * gas/cfi-sframe/cfi-sframe-x86_64-pr33170.s: New test.

    (cherry picked from commit 83eeaf917873a550656faf9a38cd14e0f4c521b1)

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to