在 2026-11-9 21:54, LIU Hao 写道:
在 2026-11-5 06:47, Pali Rohár 写道:Hello, when you have a time, could you look at my changes in the mingw_setjmp_v3.patches file sent in the previous email?Just for information all those commits were applied on the top of the master branch at time of sending them, which was on top of the commit 088d2039f9f5ca872092c7a03c765936a93011f8 I understand that it is quite a larger change and probably needs more time for looking it at. Commits are prepared in a way that they can be applied also one-by-one with respect to tests. So it is possible to take and look at just first few of them.I tried looking into these patches for some times, but these are, nonetheless, a very complicated series of changes. So far I consider to take these piece by piece. The first two seem quite obvious. I can push them tomorrow.
I have read patches 18-25 and they mostly look good to me.Patch 23 'crt: Implement __mingw_longjmp for arm64ec builds' attempts to restore D6 and D7 (these are non-volatile for ARM64EC but volatile for ARM64) from the jump buffer, but they're not saved in `__intrinsic_setjmpex` which looks like oversight in a20beb433824b6a0bbb3fed5b533fa45e907119e. I have added a fixup in the commit:
diff --git a/mingw-w64-crt/misc/arm64ec/setjmp.c
b/mingw-w64-crt/misc/arm64ec/setjmp.c
index 7dcb87eed..a65ff91ea 100644
--- a/mingw-w64-crt/misc/arm64ec/setjmp.c
+++ b/mingw-w64-crt/misc/arm64ec/setjmp.c
@@ -98,6 +98,7 @@ int __attribute__((naked)) __intrinsic_setjmpex( jmp_buf buf,
void *frame )
"stp x19, x20, [x0, #0x30]\n\t" /* jmp_buf->R12,R13 */
"stp x21, x22, [x0, #0x40]\n\t" /* jmp_buf->R14,R15 */
"str x30, [x0, #0x50]\n\t" /* jmp_buf->Rip */
+ "stp d6, d7, [x0, #0x60]\n\t" /* jmp_buf->Xmm6,Xmm7 */
"stp d8, d9, [x0, #0x80]\n\t" /* jmp_buf->Xmm8,Xmm9 */
"stp d10, d11, [x0, #0xa0]\n\t" /* jmp_buf->Xmm10,Xmm11 */
"stp d12, d13, [x0, #0xc0]\n\t" /* jmp_buf->Xmm12,Xmm13 */
I have pushed all these patches now.
--
Best regards,
LIU Hao
OpenPGP_signature.asc
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
