Re: [Mingw-w64-public] [Project News|New Builds]

2018-05-24 Thread sisyphus1
-Original Message- From: niXman Sent: Friday, May 25, 2018 2:26 AM To: mingw-w64-public Subject: [Mingw-w64-public] [Project News|New Builds] Hi, The new builds of MinGW-W64 based on 'GCC-8.1.0' and MinGW-w64 'master' branch was uploaded. Thank you !! I'll be trying them out soon.

[Mingw-w64-public] [Project News|New Builds]

2018-05-24 Thread niXman
Hi, The new builds of MinGW-W64 based on 'GCC-8.1.0' and MinGW-w64 'master' branch was uploaded. 32-bit: posix-sjlj: https://sf.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/8.1.0/threads-posix/sjlj/i686-8.1.0-release-posix-sjlj-rt_v6-rev0.7z

Re: [Mingw-w64-public] [PATCH] d2d1.h: Work around GCC not being compatible with MSVC in aggregate retuns handling.

2018-05-24 Thread Liu Hao
在 2018/5/24 21:04, Jacek Caban 写道: > > Based on patch by Tom Ritter. > > Signed-off-by: Jacek Caban > --- > mingw-w64-headers/include/d2d1.h | 125 > +++ > 1 file changed, 125 insertions(+) > > > Thanks for the fix. This looks good to me. Please apply.

[Mingw-w64-public] [PATCH] d2d1.h: Work around GCC not being compatible with MSVC in aggregate retuns handling.

2018-05-24 Thread Jacek Caban
Based on patch by Tom Ritter. Signed-off-by: Jacek Caban --- mingw-w64-headers/include/d2d1.h | 125 +++ 1 file changed, 125 insertions(+) diff --git a/mingw-w64-headers/include/d2d1.h b/mingw-w64-headers/include/d2d1.h index bc457850..ea8a0329 100644 --- a

Re: [Mingw-w64-public] [PATCH] d2d1.h: Work around GCC not being compatible with MSVC in aggregate retuns handling.

2018-05-24 Thread Jacek Caban
On 05/22/2018 01:02 PM, Liu Hao wrote: > 在 2018/5/22 17:46, Jacek Caban 写道: >> +#ifndef WIDL_EXPLICIT_AGGREGATE_RETURNS >> STDMETHOD_(D2D1_SIZE_F, GetSize)(void) const PURE; >> +#else >> +    virtual D2D1_SIZE_F* STDMETHODCALLTYPE GetSize(D2D1_SIZE_F*) = 0; >> +    D2D1_SIZE_F STDMETHODCALLTYP

[Mingw-w64-public] [PATCHv2] headers: Add missing 64 bit InterlockedBitTestAndTest functions for arm64

2018-05-24 Thread Martin Storsjö
Signed-off-by: Martin Storsjö --- Updated to actually use a separate 64 bit inline assembly snippet for this as well. This has been tested with various 64 bit input parameters. This is a copy of the existing 32 bit versions of these functions, but with parameter and return value types updated, an

Re: [Mingw-w64-public] [PATCH v2 1/3] headers: Add missing BitScanForward/Reverse functions for arm and arm64

2018-05-24 Thread Martin Storsjö
On Thu, 24 May 2018, Liu Hao wrote: 在 2018/5/24 17:05, Martin Storsjö 写道: Yes, but I'm not using __builtin_clzl, I'm using __builtin_clz which takes an unsigned int, or __builtin_clzll which takes a long long. I thought I saw an `l` suffix. o_O The patch is OK then. Thanks, pushed. //

Re: [Mingw-w64-public] [PATCH 3/3] headers: Use the same 64 bit compatibility wrappers for arm as for i386

2018-05-24 Thread Martin Storsjö
On Wed, 23 May 2018, Liu Hao wrote: 在 2018/5/23 18:40, Martin Storsjö 写道: Below this elif, there's an else clause, currently used for i386, which contains 64 bit compatibility wrappers for functions, based on InterlockedCompareExchange64. This makes the 64 bit frontend functions work just like

Re: [Mingw-w64-public] [PATCH v2 1/3] headers: Add missing BitScanForward/Reverse functions for arm and arm64

2018-05-24 Thread Martin Storsjö
-- Forwarded message -- Date: Thu, 24 May 2018 17:04:14 +0800 From: Liu Hao To: Martin Storsjö Subject: Re: [Mingw-w64-public] [PATCH v2 1/3] headers: Add missing BitScanForward/Reverse functions for arm and arm64 在 2018/5/24 16:06, Martin Storsjö 写道: No, not sizeof(long).

Re: [Mingw-w64-public] [PATCH v2 1/3] headers: Add missing BitScanForward/Reverse functions for arm and arm64

2018-05-24 Thread Martin Storsjö
On Thu, 24 May 2018, Liu Hao wrote: 在 2018/5/24 14:59, Martin Storsjö 写道: That seems like a very new addition, too new to rely on. Notice how it is present in the 7.1.0 docs [1] but missing in the 6.1.0 docs [2]. Additionally, clang does seem to define this kind of macros, but not all of the

Re: [Mingw-w64-public] [PATCH v2 1/3] headers: Add missing BitScanForward/Reverse functions for arm and arm64

2018-05-24 Thread Liu Hao
在 2018/5/24 14:59, Martin Storsjö 写道: > That seems like a very new addition, too new to rely on. Notice how it > is present in the 7.1.0 docs [1] but missing in the 6.1.0 docs [2]. > > Additionally, clang does seem to define this kind of macros, but not all > of them (it defines e.g. __SIZE_WIDT

Re: [Mingw-w64-public] [PATCH v2 1/3] headers: Add missing BitScanForward/Reverse functions for arm and arm64

2018-05-24 Thread Martin Storsjö
On Thu, 24 May 2018, Liu Hao wrote: 在 2018/5/24 1:35, Martin Storsjö 写道: I guess that's doable (I guess you mean __SIZEOF_LONG__ * 8?), although I'd maybe rather use "sizeof(Mask) * 8" instead. // Martin `__*_WIDTH__` macros are documented on