On 3/17/24 2:22 PM, Christoph Müllner wrote:
On Fri, Apr 28, 2023 at 8:12 AM Christoph Muellner
<christoph.muell...@vrull.eu> wrote:

From: Christoph Müllner <christoph.muell...@vrull.eu>

The current implementation triggers an assertion in
dwarf2out_frame_debug_cfa_offset() under certain circumstances.
The standard code uses REG_FRAME_RELATED_EXPR notes instead
of REG_CFA_OFFSET notes when saving registers on the stack.
So let's do this as well.

gcc/ChangeLog:

         * config/riscv/thead.cc (th_mempair_save_regs):
         Emit REG_FRAME_RELATED_EXPR notes in prologue.

Signed-off-by: Christoph Müllner <christoph.muell...@vrull.eu>

This patch applies cleanly on GCC 13.
Ok to backport to GCC 13 (fixing PR114160)?
Yes.  Please go ahead.

Thanks,
jeff

Reply via email to