[Mingw-w64-public] [PATCH] setjmp: Support setjmp on arm64

2017-09-07 Thread Martin Storsjö
Signed-off-by: Martin Storsjö --- mingw-w64-crt/misc/mingw_getsp.S | 5 - mingw-w64-headers/crt/setjmp.h | 26 ++ 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/mingw-w64-crt/misc/mingw_getsp.S b/mingw-w64-crt/misc/mingw_getsp.S index 3c99658..97510c

[Mingw-w64-public] [PATCH] setjmp: Only use _setjmp3 on i386

2017-09-07 Thread Martin Storsjö
Don't use _WIN64 to decide this, but check explicitly for i386, and use _setjmp on other platforms. This fixes compilation of code using setjmp on arm32. Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/setjmp.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mi

Re: [Mingw-w64-public] [PATCHv3 0/3] Initial support for ucrtbase.dll

2017-09-07 Thread Martin Storsjö
On Thu, 7 Sep 2017, Martin Storsjö wrote: On Thu, 7 Sep 2017, JonY via Mingw-w64-public wrote: On 09/07/2017 10:31 AM, Martin Storsjö wrote: Hi, This is a new reroll of the full patchset. Compared to the previous version, I've fixed support for clang and improved the headers to behave clos

[Mingw-w64-public] [PATCH 2/2] crt: Correct aliases in newdev.def

2017-09-07 Thread Martin Storsjö
To actually produce the right kind of intended alias, use double equals characters as in all other places. This has been the same since it was initially added in 9ff1fefdadd4dec5826ff653cbac6f263bf47a72 though. Signed-off-by: Martin Storsjö --- mingw-w64-crt/lib32/newdev.def | 4 ++-- 1 file ch

Re: [Mingw-w64-public] [PATCHv3 0/3] Initial support for ucrtbase.dll

2017-09-07 Thread Martin Storsjö
On Thu, 7 Sep 2017, JonY via Mingw-w64-public wrote: On 09/07/2017 10:31 AM, Martin Storsjö wrote: Hi, This is a new reroll of the full patchset. Compared to the previous version, I've fixed support for clang and improved the headers to behave closer to how MSVC does (have the standard snprint

Re: [Mingw-w64-public] [PATCHv3 0/3] Initial support for ucrtbase.dll

2017-09-07 Thread JonY via Mingw-w64-public
On 09/07/2017 10:31 AM, Martin Storsjö wrote: > Hi, > > This is a new reroll of the full patchset. Compared to the previous version, > I've fixed support for clang and improved the headers to behave closer to how > MSVC does (have the standard snprintf work as C99 standard snprintf should, > but k

[Mingw-w64-public] [PATCHv3 0/3] Initial support for ucrtbase.dll

2017-09-07 Thread Martin Storsjö
Hi, This is a new reroll of the full patchset. Compared to the previous version, I've fixed support for clang and improved the headers to behave closer to how MSVC does (have the standard snprintf work as C99 standard snprintf should, but keeping the old nonstandard _snprintf as it was), and made

[Mingw-w64-public] [PATCH 2/3] headers: Add ucrtbase.dll specific parts to headers

2017-09-07 Thread Martin Storsjö
Map the common standard C stdio functions to the ucrtbase.dll implementations. The ucrtbase stdio functions can function in a number of different modes; in the old legacy msvcrt.dll compatible mode, or in C99 compatible mode. Legacy functions such as _snprintf keep their old behaviour, while snpri

[Mingw-w64-public] [PATCH 1/3] crt: Add a def file for ucrtbase.dll

2017-09-07 Thread Martin Storsjö
This def file is originally based on wine's spec file for this DLL, but with manual modifications made on top in the same style as the manual edits in msvcrt.def.in. Signed-off-by: Martin Storsjö --- v3: No changes. --- mingw-w64-crt/Makefile.am| 16 +- mingw-w64-crt/lib-common

[Mingw-w64-public] [PATCH 3/3] crt: Add compat wrappers for adapting the CRT startup and libmingwex to ucrtbase.dll

2017-09-07 Thread Martin Storsjö
This intercepts the function calls that the mingw CRT startup and other libmingwex helpers expect to use, that no longer is available on ucrtbase.dll. This allows using the same CRT startup object files and libmingwex both with the normal msvcrt.dll and with ucrtbase.dll, instead of having to rebu