Re: [Mingw-w64-public] [PATCH 2/2] crt: Add ARM64EC setjmp and longjmp implementation

2025-04-22 Thread Jacek Caban
On 22.04.2025 14:27, Martin Storsjö wrote: On Fri, 11 Apr 2025, Jacek Caban wrote: diff --git a/mingw-w64-crt/misc/arm64ec/longjmp.c b/mingw-w64-crt/misc/arm64ec/longjmp.c new file mode 100644 index 0..ebf795f63 --- /dev/null +++ b/mingw-w64-crt/misc/arm64ec/longjmp.c @@ -0,0 +1,30 @@

Re: [Mingw-w64-public] [PATCH 1/2] headers: Use __builtin_sponentry for setjmp when available.

2025-04-22 Thread Jacek Caban
On 22.04.2025 14:16, Martin Storsjö wrote: On Fri, 11 Apr 2025, Jacek Caban wrote: Instead of for specific architectures. Fixes setjmp on ARM64EC. --- mingw-w64-headers/crt/setjmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/crt/setjmp.h b/mingw-w64-he

Re: [Mingw-w64-public] [PATCH 3/3] crt: Build __guard_dispatch_icall_dummy on ARM64EC

2025-04-22 Thread Martin Storsjö
On Sat, 12 Apr 2025, Jacek Caban wrote: --- There's an alternative way to handle this, see: https://github.com/llvm/llvm-project/pull/135280 It would work in this case, but I'm not convinced it's the right approach overall. While extending the assembler to allow setting the flag is straight

Re: [Mingw-w64-public] [PATCH 2/3] crt: Move __guard_dispatch_icall_dummy to separated file

2025-04-22 Thread Martin Storsjö
On Sat, 12 Apr 2025, Jacek Caban wrote: In preparation for building as x86_64 on ARM64EC. --- mingw-w64-crt/Makefile.am | 3 ++- mingw-w64-crt/cfguard/guard_dispatch.S| 11 +++ mingw-w64-crt/cfguard/mingw_cfguard_support.c | 8 3 files changed, 13 inse

Re: [Mingw-w64-public] crt: Add libquartz import library to arm64

2025-04-22 Thread Hernan Martinez via Mingw-w64-public
Ah ok. I didn't know. I did attach it as a .patch file. It should be a .txt now Sent with Proton Mail secure email. On Tuesday, April 22nd, 2025 at 5:14 AM, JonY via Mingw-w64-public wrote: > On 4/22/25 10:06 AM, Zach Bacon wrote: > > > I think you forgot to attach the patch > > > > On T

Re: [Mingw-w64-public] [PATCH 1/3] crt: Build scanf.S as an x86_64 object on ARM64EC

2025-04-22 Thread Martin Storsjö
On Sat, 12 Apr 2025, Jacek Caban wrote: A proper ARM64EC implementation would be tricky, as it would need to handle a different calling convention and possibly use exit thunks for imported functions. Instead, we can simply use the x86_64 version. --- I think this sounds reasonable - I guess it

Re: [Mingw-w64-public] [PATCH 2/2] crt: Add ARM64EC setjmp and longjmp implementation

2025-04-22 Thread Martin Storsjö
On Fri, 11 Apr 2025, Jacek Caban wrote: Based on Wine code by Alexandre Julliard. --- mingw-w64-crt/Makefile.am| 8 ++- mingw-w64-crt/misc/arm64ec/longjmp.c | 30 mingw-w64-crt/misc/arm64ec/setjmp.c | 104 +++ mingw-w64-crt/misc/longjmp.S |

Re: [Mingw-w64-public] [PATCH 1/2] headers: Use __builtin_sponentry for setjmp when available.

2025-04-22 Thread Martin Storsjö
On Fri, 11 Apr 2025, Jacek Caban wrote: Instead of for specific architectures. Fixes setjmp on ARM64EC. --- mingw-w64-headers/crt/setjmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-headers/crt/setjmp.h b/mingw-w64-headers/crt/setjmp.h index 2dc7d8739..f5208a0dc

Re: [Mingw-w64-public] crt: Add libquartz import library to arm64

2025-04-22 Thread JonY via Mingw-w64-public
On 4/22/25 10:06 AM, Zach Bacon wrote: I think you forgot to attach the patch On Tue, Apr 22, 2025, 5:28 a.m. Hernan Martinez via Mingw-w64-public < mingw-w64-public@lists.sourceforge.net> wrote: The exported symbols are the same as x64 Please add the patch attachment as .txt, SF has been kn

Re: [Mingw-w64-public] crt: Add libquartz import library to arm64

2025-04-22 Thread Zach Bacon
I think you forgot to attach the patch On Tue, Apr 22, 2025, 5:28 a.m. Hernan Martinez via Mingw-w64-public < mingw-w64-public@lists.sourceforge.net> wrote: > The exported symbols are the same as x64 > ___ > Mingw-w64-public mailing list > Mingw-w64-pub

[Mingw-w64-public] crt: Add libquartz import library to arm64

2025-04-22 Thread Hernan Martinez via Mingw-w64-public
The exported symbols are the same as x64 ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

[Mingw-w64-public] [V2] winpthreads: add support for _USE_32BIT_TIME_T and _TIME_BITS macros

2025-04-22 Thread Kirill Makurin
This is the updated patch series. Some patches have been reordered and new patches have been added. Some patches have been updated. New patches are: 0002.txt-0005.txt and 0010.txt. 0002.txt: Get rid of now unused `WINPTHREAD_DBG` macro. All code guarded by this macro has been removed. In addi