Re: [Mingw-w64-public] [PATCH] headers: Define _M_ARM64 just like MSVC does

2017-11-06 Thread Kai Tietz via Mingw-w64-public
Patch is okay. Please go ahead ans commit. Thanks Kai Am 07.11.2017 08:42 schrieb "Martin Storsjö" : > Signed-off-by: Martin Storsjö > --- > mingw-w64-headers/crt/_mingw_mac.h | 4 > 1 file changed, 4 insertions(+) > > diff --git a/mingw-w64-headers/crt/_mingw_mac.h b/mingw-w64-headers/cr

Re: [Mingw-w64-public] [PATCH] normalise x86 (i686 vs i386) detection

2017-11-06 Thread Kai Tietz via Mingw-w64-public
Patch is okay. Please commit. Thanks Kai Am 07.11.2017 08:42 schrieb "Martin Storsjö" : > On Tue, 7 Nov 2017, Martell Malone wrote: > > ping. :) >> I think this is being lost between all the different patches being >> submitted atm. >> > > The patch looks good to me although I'm not very familiar

[Mingw-w64-public] [PATCH] headers: Define _M_ARM64 just like MSVC does

2017-11-06 Thread Martin Storsjö
Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/_mingw_mac.h | 4 1 file changed, 4 insertions(+) diff --git a/mingw-w64-headers/crt/_mingw_mac.h b/mingw-w64-headers/crt/_mingw_mac.h index eeb59c6..e60e8d7 100644 --- a/mingw-w64-headers/crt/_mingw_mac.h +++ b/mingw-w64-headers/crt/

Re: [Mingw-w64-public] [PATCH] normalise x86 (i686 vs i386) detection

2017-11-06 Thread Martin Storsjö
On Tue, 7 Nov 2017, Martell Malone wrote: ping. :) I think this is being lost between all the different patches being submitted atm. The patch looks good to me although I'm not very familiar with those areas. Assuming you've tested it, it looks good to me. // Martin ---

[Mingw-w64-public] [PATCHv3 3/3] headers: Fix the ucrtbase version of asprintf and vasprinf

2017-11-06 Thread Martin Storsjö
Move the format attribute to the right spot, use unique variables in the asprintf function (previously there were two variables named ret), use properly reserved identifiers throughout both functions. Signed-off-by: Martin Storsjö --- Now with __format__ instead of format, in the attribute. ---

Re: [Mingw-w64-public] [PATCH] normalise x86 (i686 vs i386) detection

2017-11-06 Thread Martell Malone
ping. :) I think this is being lost between all the different patches being submitted atm. On Sun, Nov 5, 2017 at 3:07 AM, Martell Malone wrote: > different variations of -march can be passed to the compiler. > this fixes mingw-w64 when __i686__ is not present. > > Please Review. > > diff --git

Re: [Mingw-w64-public] [PATCHv2 3/3] headers: Fix the ucrtbase version of asprintf and vasprinf

2017-11-06 Thread Liu Hao
On 2017/11/7 14:23, Martin Storsjö wrote: __attribute__ ((format (__MINGW_PRINTF_FORMAT, 2, 0))) I think this should be `__attribute__((__format__ ... ))`, as in `_snprintf`. I just took a look at other functions in , and yes, there are a number of such issues, with a few more (such as th

[Mingw-w64-public] [PATCHv2 3/3] headers: Fix the ucrtbase version of asprintf and vasprinf

2017-11-06 Thread Martin Storsjö
Move the format attribute to the right spot, use unique variables in the asprintf function (previously there were two variables named ret), use properly reserved identifiers throughout both functions. Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/stdio.h | 30 --

Re: [Mingw-w64-public] [PATCH 3/3] headers: Fix the ucrtbase version of asprintf

2017-11-06 Thread Martin Storsjö
On Tue, 7 Nov 2017, Liu Hao wrote: On 2017/11/7 13:19, Martin Storsjö wrote: Not really, it mostly comes from whichever wording was used in the place it was copypasted from. Since these identifiers aren't visible outside of the inline function, I don't see how it would matter. If you feel stro

Re: [Mingw-w64-public] [PATCH 3/3] headers: Fix the ucrtbase version of asprintf

2017-11-06 Thread Liu Hao
On 2017/11/7 13:19, Martin Storsjö wrote: Not really, it mostly comes from whichever wording was used in the place it was copypasted from. Since these identifiers aren't visible outside of the inline function, I don't see how it would matter. If you feel strongly about it, there's a huge number

Re: [Mingw-w64-public] [PATCH 3/3] headers: Fix the ucrtbase version of asprintf

2017-11-06 Thread Martin Storsjö
On Tue, 7 Nov 2017, Liu Hao wrote: On 2017/11/7 6:19, Martin Storsjö wrote: Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/stdio.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h index 7365994

Re: [Mingw-w64-public] [PATCH 0/2] Top level build libraries/tools improvements

2017-11-06 Thread Alon Bar-Lev
On 7 November 2017 at 01:09, JonY via Mingw-w64-public wrote: > > On 11/04/2017 09:02 PM, Alon Bar-Lev wrote: > > Hi, > > > > I see that the patch to add winpthreads was finally merged, this is great as > > we can patch less the build system at Gentoo. > > > > Here are additional two patches: > >

Re: [Mingw-w64-public] [PATCH 3/3] headers: Fix the ucrtbase version of asprintf

2017-11-06 Thread Liu Hao
On 2017/11/7 6:19, Martin Storsjö wrote: Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/stdio.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h index 7365994..cea5559 100644 --- a/mingw-w64-head

Re: [Mingw-w64-public] [PATCH 0/2] Top level build libraries/tools improvements

2017-11-06 Thread JonY via Mingw-w64-public
On 11/04/2017 09:02 PM, Alon Bar-Lev wrote: > Hi, > > I see that the patch to add winpthreads was finally merged, this is great as > we can patch less the build system at Gentoo. > > Here are additional two patches: > 1. Enable build of pseh only in supported architecture > 2. Enable comma-separa

[Mingw-w64-public] [PATCH 1/3] headers: Use ___mb_cur_max_func instead of __mb_cur_max

2017-11-06 Thread Martin Storsjö
This avoids having libmingwex refer to the dllimported data symbol from msvcrt.dll, easing linking to ucrtbase.dll which doesn't have it exported as a data symbol. Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/ctype.h | 2 +- mingw-w64-headers/crt/stdlib.h | 2 +- 2 files changed, 2 i

[Mingw-w64-public] [PATCH 3/3] headers: Fix the ucrtbase version of asprintf

2017-11-06 Thread Martin Storsjö
Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/stdio.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mingw-w64-headers/crt/stdio.h b/mingw-w64-headers/crt/stdio.h index 7365994..cea5559 100644 --- a/mingw-w64-headers/crt/stdio.h +++ b/mingw-w64-headers/crt/s

[Mingw-w64-public] [PATCH 2/3] crt: Remove ucrtbase_compat workarounds for __mb_cur_max

2017-11-06 Thread Martin Storsjö
This simplifies the compat wrapper quite significantly, and the workarounds weren't sufficient in any case (the local __mb_cur_max value only was updated if the current module set the locale). Signed-off-by: Martin Storsjö --- mingw-w64-crt/crt/ucrtbase_compat.c | 39

Re: [Mingw-w64-public] [PATCH] Provide __debugbreak on clang if it doesn't exist as builtin

2017-11-06 Thread Martin Storsjö
On Sun, 5 Nov 2017, Martell Malone wrote: LGTM On Sun, Nov 5, 2017 at 7:49 PM, Martin Storsjö wrote: Since clang 3.4, __debugbreak is limited to -fms-extensions and thus not available by default when targeting mingw. Signed-off-by: Martin Storsjö --- mingw-w64-headers/crt/_mingw.h.in | 7