]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
RISC-V/libgcc: Save/Restore routines for E goes with ABI.
authorJim Lin <jim@andestech.com>
Fri, 27 Sep 2024 06:44:12 +0000 (14:44 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Fri, 27 Sep 2024 09:29:06 +0000 (17:29 +0800)
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.

libgcc/config/riscv/save-restore.S

index 9bf42d111bc6b8547021c96b7c2162e8660ee872..8a4391e1a978ec94ee156cea2590dac07359e775 100644 (file)
@@ -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 */