diff options
author | Jim Lin <jim@andestech.com> | 2024-09-27 14:44:12 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2024-09-27 17:29:06 +0800 |
commit | bb01c9d6d280d7ffbaa8f09c36ae57908a4f6883 (patch) | |
tree | 3df30c043a189be3a49ae66c8ac90d1bbf6fae79 | |
parent | 6b7eaec20b046eebc771022e460c2206580aef04 (diff) | |
download | gcc-bb01c9d6d280d7ffbaa8f09c36ae57908a4f6883.zip gcc-bb01c9d6d280d7ffbaa8f09c36ae57908a4f6883.tar.gz gcc-bb01c9d6d280d7ffbaa8f09c36ae57908a4f6883.tar.bz2 |
RISC-V/libgcc: Save/Restore routines for E goes with ABI.
That Save/Restore routines for E can be used for RVI with ILP32E ABI.
libgcc/ChangeLog:
* config/riscv/save-restore.S: Check with __riscv_abi_rve rather than
__riscv_32e.
-rw-r--r-- | libgcc/config/riscv/save-restore.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgcc/config/riscv/save-restore.S b/libgcc/config/riscv/save-restore.S index 9bf42d1..8a4391e 100644 --- a/libgcc/config/riscv/save-restore.S +++ b/libgcc/config/riscv/save-restore.S @@ -295,7 +295,7 @@ FUNC_END (__riscv_restore_0) #else -#ifdef __riscv_32e +#ifdef __riscv_abi_rve FUNC_BEGIN(__riscv_save_2) FUNC_BEGIN(__riscv_save_1) FUNC_BEGIN(__riscv_save_0) @@ -529,6 +529,6 @@ FUNC_END (__riscv_restore_2) FUNC_END (__riscv_restore_1) FUNC_END (__riscv_restore_0) -#endif /* __riscv_32e */ +#endif /* __riscv_abi_rve */ #endif /* __riscv_xlen == 64 */ |