Re: [Mingw-w64-public] [PATCH 1/3] crt: Add initial ARM64EC build system support

2025-04-08 Thread Jacek Caban
On 7.04.2025 14:13, Martin Storsjö wrote: On Sun, 6 Apr 2025, Jacek Caban wrote: From: Billy Laws This introduces basic ARM64EC build support by reusing a modified ARM64 configuration. In the future, the goal is to include both native and ARM64EC object files in aarch64 archives. This setup

Re: [Mingw-w64-public] stat, _stat, and _stat64i32 issues

2025-04-08 Thread Lasse Collin
On 2025-04-06 Pali Rohár wrote: > On Saturday 29 March 2025 18:56:56 Lasse Collin wrote: > > On 2025-03-29 Pali Rohár wrote: > > > Problem is that you cannot define _USE_32BIT_TIME_T on UCRT > > > builds. There are header ifdef checks that combination of > > > _USE_32BIT_TIME_T and _UCRT throw pr

[Mingw-w64-public] [PATCH v3 4/7] crt: Change mingw-aligned-malloc.c to be compatible with MS CRT functions

2025-04-08 Thread Pali Rohár
MS CRT libraries (UCRT, msvcr70+ and os system msvcrt) for functions _aligned_malloc() and _aligned_offset_malloc() allocate the source buffer slightly smaller than the mingw-w64 functions in mingw-aligned-malloc.c. This is because the alignment gap can be used for the user data too. Do exactly sa

[Mingw-w64-public] [PATCH v3 7/7] crt: Add test case for _aligned_* and *_recalloc functions

2025-04-08 Thread Pali Rohár
--- mingw-w64-crt/Makefile.am | 1 + mingw-w64-crt/testcases/t_aligned_alloc.c | 156 ++ 2 files changed, 157 insertions(+) create mode 100644 mingw-w64-crt/testcases/t_aligned_alloc.c diff --git a/mingw-w64-crt/Makefile.am b/mingw-w64-crt/Makefile.am index