On Tue, 8 Apr 2025, Pali Rohár wrote:

This patch series provides all _aligned_* functions for all CRT import libs.

PATCH v3 fixes __mingw_aligned_msize() for alignment < sizeof(void*) and
changes mingw-aligned-malloc.c to be compatible with MS CRT functions.
New tests are in t_aligned_alloc.c too.

Now the t_aligned_alloc.c test is passing with different CRT libraries:
crtdll, msvcr40d, msvcrt, msvcr70, UCRT...

crtdll and msvcr40d are using only mingw-w64 emulated functions
msvcrt and msvcr70 are using CRT functions for allocation and mingw-w64
emulation for aligned msize
UCRT is using CRT functions only, none mingw-w64 emulation

It does not pass with msvcrt10 and msvcrt20 because these libraries have
broken _msize() function. The first malloc/_msize test in the file
t_aligned_alloc.c is failing.

Thanks, this revision of the patchset seemed ok, so I pushed it!

// Martin

_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to