[v2,13/14] LoongArch: Fix ilp32 detection

Message ID 20230809115325.3716347-14-c@jia.je
State Unresolved
Headers
Series LoongArch: Add loongarch32 and ilp32 abi |

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Jiajie Chen Aug. 9, 2023, 11:46 a.m. UTC
  The correct ilp32 macro name is __loongarch_ilp32.

libitm/ChangeLog:

	* config/loongarch/asm.h: Fix ilp32 detection.
---
 libitm/config/loongarch/asm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
  

Patch

diff --git a/libitm/config/loongarch/asm.h b/libitm/config/loongarch/asm.h
index 39e02b45f17..11d6d3c079e 100644
--- a/libitm/config/loongarch/asm.h
+++ b/libitm/config/loongarch/asm.h
@@ -30,7 +30,7 @@ 
 #  define GPR_S st.d
 #  define SZ_GPR 8
 #  define ADDSP(si)   addi.d  $sp, $sp, si
-#elif defined(__loongarch64_ilp32)
+#elif defined(__loongarch_ilp32)
 #  define GPR_L ld.w
 #  define GPR_S st.w
 #  define SZ_GPR 4