diff options
author | Tsung Chun Lin <tclin914@gmail.com> | 2024-10-01 09:10:29 -0600 |
---|---|---|
committer | Jeff Law <jlaw@ventanamicro.com> | 2024-10-01 09:10:29 -0600 |
commit | 97fd777248f3c22f6baa5a25f25f7dd510ca5e63 (patch) | |
tree | a4e669c815d60651a6eae74215f0f2cc6af23595 | |
parent | 1b7cfa715c6c02db6ef587c87757d7792fc43423 (diff) | |
download | gcc-97fd777248f3c22f6baa5a25f25f7dd510ca5e63.zip gcc-97fd777248f3c22f6baa5a25f25f7dd510ca5e63.tar.gz gcc-97fd777248f3c22f6baa5a25f25f7dd510ca5e63.tar.bz2 |
[PATCH] RISC-V/libgcc: Fix incorrect and missing .cfi_offset for __riscv_save_[0-3] on RV32.
0001-RISC-V-libgcc-Fix-incorrect-and-missing-.cfi_offset-.patch
From 06a370a0a2329dd4da0ffcab7c35ea7df2353baf Mon Sep 17 00:00:00 2001
From: Jim Lin <jim@andestech.com>
Date: Tue, 1 Oct 2024 14:42:56 +0800
Subject: [PATCH] RISC-V/libgcc: Fix incorrect and missing .cfi_offset for
__riscv_save_[0-3] on RV32.
libgcc/ChangeLog:
* config/riscv/save-restore.S: Fix .cfi_offset for
__riscv_save_[0-3] on RV32.
-rw-r--r-- | libgcc/config/riscv/save-restore.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgcc/config/riscv/save-restore.S b/libgcc/config/riscv/save-restore.S index 8a4391e..30d06cc 100644 --- a/libgcc/config/riscv/save-restore.S +++ b/libgcc/config/riscv/save-restore.S @@ -421,8 +421,9 @@ FUNC_BEGIN (__riscv_save_0) addi sp, sp, -16 .cfi_def_cfa_offset 16 sw s2, 0(sp) + .cfi_offset 18, -16 sw s1, 4(sp) - .cfi_offset 9, -16 + .cfi_offset 9, -12 sw s0, 8(sp) .cfi_offset 8, -8 sw ra, 12(sp) |