[Mingw-w64-public] [PATCH] crt: Define llabs/imaxabs/_abs64 functions for all msvcrt builds

2022-12-18 Thread Pali Rohár
Function _abs64() is available since msvcr80.dll on 64-bit systems and since msvcr90.dll on 32-bit systems. It is also available on 64-bit version of msvcrt.dll system library. Function llabs() is available since msvcr100.dll and function imaxabs() since msvcr120.dll. For older msvcrt versions whi

[Mingw-w64-public] [PATCH] crt: Define lldiv/imaxdiv functions for all msvcrt builds

2022-12-18 Thread Pali Rohár
Function lldiv() is available since msvcr100.dll and function imaxdiv() since msvcr120.dll. So for msvcr100.dll and msvcr110.dll define imaxdiv() as alias to lldiv(). And for older msvcrt versions include mingw-w64 implementation from imaxdiv.c. Do not pack mingw-w64 implementation of imaxdiv() int

[Mingw-w64-public] [PATCH] Remove old and unused msvcrt def file ms.def

2022-12-18 Thread Pali Rohár
--- mingw-w64-tools/genstubdll/sample/ms.def | 1416 -- 1 file changed, 1416 deletions(-) delete mode 100644 mingw-w64-tools/genstubdll/sample/ms.def diff --git a/mingw-w64-tools/genstubdll/sample/ms.def b/mingw-w64-tools/genstubdll/sample/ms.def deleted file mode 100644 ind

[Mingw-w64-public] [PATCH 2/3] crt: Fix -Wimplicit-fallthrough for mingw_pformat.c

2022-12-18 Thread Pali Rohár
stdio/mingw_pformat.c:2510:20: warning: this statement may fall through [-Wimplicit-fallthrough=] length = PFORMAT_LENGTH_LONG; ~~~^ stdio/mingw_pformat.c:2512:11: note: here case 'c': ^~~~ stdio/mi

[Mingw-w64-public] [PATCH 3/3] crt: Fix -Wimplicit-fallthrough for gdtoa

2022-12-18 Thread Pali Rohár
gdtoa/gethex.c: In function ‘__gethex_D2A’: gdtoa/gethex.c:127:10: warning: this statement may fall through [-Wimplicit-fallthrough=] esign = 1; ~~^~~ gdtoa/gethex.c:129:5: note: here case '+': ^~~~ gdtoa/dtoa.c: In function ‘__dtoa’: gdtoa

[Mingw-w64-public] [PATCH 1/3] headers: Fix noreturn compile warning for __fastfail()

2022-12-18 Thread Pali Rohár
mingw-w64-headers/crt/_mingw.h: In function ‘__fastfail’: mingw-w64-headers/crt/_mingw.h:615:1: warning: ‘noreturn’ function does return } ^ --- mingw-w64-headers/crt/_mingw.h.in | 1 + 1 file changed, 1 insertion(+) diff --git a/mingw-w64-headers/crt/_mingw.h.in b/mingw-w64-h