[PATCH 2/2] newlib: riscv: Fix build for rv64e

Eric Salem <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <bffc9ecfb6377fa3be76544de5bc784975c3a866.1745116142.git.ericsalem@gmail.com>
Update the macro check so that rv64e builds successfully.

Signed-off-by: Eric Salem <[email protected]>
---
 newlib/libc/machine/riscv/setjmp.S | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/newlib/libc/machine/riscv/setjmp.S b/newlib/libc/machine/riscv/setjmp.S
index eef242e0211a..2d4ab6cfc885 100644
--- a/newlib/libc/machine/riscv/setjmp.S
+++ b/newlib/libc/machine/riscv/setjmp.S
@@ -19,7 +19,7 @@ setjmp:
 	REG_S s0,  1*SZREG(a0)
 	REG_S s1,  2*SZREG(a0)
 
-#ifndef __riscv_32e
+#ifndef __riscv_abi_rve
 	REG_S s2,  3*SZREG(a0)
 	REG_S s3,  4*SZREG(a0)
 	REG_S s4,  5*SZREG(a0)
@@ -61,7 +61,7 @@ longjmp:
 	REG_L ra,  0*SZREG(a0)
 	REG_L s0,  1*SZREG(a0)
 	REG_L s1,  2*SZREG(a0)
-#ifndef __riscv_32e
+#ifndef __riscv_abi_rve
 	REG_L s2,  3*SZREG(a0)
 	REG_L s3,  4*SZREG(a0)
 	REG_L s4,  5*SZREG(a0)
-- 
2.49.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.