[Mingw-w64-public] [PATCH] ucrtbase: Fix linking to fwrite in libucrtbase.a

2017-11-05 Thread Martin Storsjö
This was missed in the cleanup in 7cde6573c435830c75fd5d915444388c27aff1e0, when the wrapper in libmingwex was made unnecessary and removed. Signed-off-by: Martin Storsjö --- mingw-w64-crt/lib-common/ucrtbase.def.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/mingw-w64-

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

2017-11-05 Thread Martell Malone
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 ++- > 1 file changed, 6 insert

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

2017-11-05 Thread Martin Storsjö
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 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mingw-w64-headers/crt/_mingw.h.in b/m

Re: [Mingw-w64-public] Any chance that C++ locales work with g++?

2017-11-05 Thread Frédéric
> See libstdc++ source: gcc/libstdc++-v3/src/c++98/localename.cc #47 > See: gcc/libstdc++-v3/config/locale/generic/c_locale.cc #227 > > The "C" locale is the only supported one at the moment - even the "POSIX" > one will not be supported. If the string passed to > `locale::facet::_S_create_c_locale

Re: [Mingw-w64-public] [PATCH] Provide __debugbreak on clang >= 3.4 as well

2017-11-05 Thread Martin Storsjö
On Sun, 5 Nov 2017, Jacek Caban wrote: Hi Martin, On 11/5/17 12:25 PM, Martin Storsjö wrote: #ifdef __MINGW_INTRIN_INLINE -#if !defined (__clang__) +#if !defined (__clang__) || (__clang_major__ > 3 || __clang_major__ == 3 && __clang_minor__ >= 4) Could __has_builtin be used instead? Hm

Re: [Mingw-w64-public] [PATCH] Provide __debugbreak on clang >= 3.4 as well

2017-11-05 Thread Martin Storsjö
On Sun, 5 Nov 2017, Martin Storsjö wrote: Since clang 3.4, __debugbreak is limited to -fms-extensions and thus not available by default when targeting mingw. The clang versioning ifdefs only work properly when on vanilla clang; the clang shipped by Apple as part of Xcode doesn't indicate what u

Re: [Mingw-w64-public] [PATCH] Provide __debugbreak on clang >= 3.4 as well

2017-11-05 Thread Jacek Caban
Hi Martin, On 11/5/17 12:25 PM, Martin Storsjö wrote: #ifdef __MINGW_INTRIN_INLINE -#if !defined (__clang__) +#if !defined (__clang__) || (__clang_major__ > 3 || __clang_major__ == 3 && __clang_minor__ >= 4) Could __has_builtin be used instead? Thanks, Jacek -

[Mingw-w64-public] [PATCH] Provide __debugbreak on clang >= 3.4 as well

2017-11-05 Thread Martin Storsjö
Since clang 3.4, __debugbreak is limited to -fms-extensions and thus not available by default when targeting mingw. The clang versioning ifdefs only work properly when on vanilla clang; the clang shipped by Apple as part of Xcode doesn't indicate what upstream clang version it corresponds to, but

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

2017-11-05 Thread JonY via Mingw-w64-public
On 11/05/2017 05:31 AM, Alon Bar-Lev wrote: > On 5 November 2017 at 07:00, JonY via Mingw-w64-public > wrote: >> On 11/04/2017 09:02 PM, Alon Bar-Lev wrote: >> Patches OK, but is there a reason to not use grep -q? > > Thanks! > As far as I can see this is how autoconf generates grep statements. >