Re: [Mingw-w64-public] [PATCH v4] headers: Implement __debugbreak, MemoryBarrier and YieldProcessor for armv7 and aarch64

2021-01-19 Thread Liu Hao
在 2021/1/20 上午5:44, Martin Storsjö 写道: > Signed-off-by: Martin Storsjö > --- > Added memory clobbers for YieldProcessor() too - now actually amended > the patch before sending... > --- > mingw-w64-headers/crt/_mingw.h.in | 8 > mingw-w64-headers/include/winnt.h | 6 ++ > 2 files chan

[Mingw-w64-public] [PATCH v4] headers: Implement __debugbreak, MemoryBarrier and YieldProcessor for armv7 and aarch64

2021-01-19 Thread Martin Storsjö
Signed-off-by: Martin Storsjö --- Added memory clobbers for YieldProcessor() too - now actually amended the patch before sending... --- mingw-w64-headers/crt/_mingw.h.in | 8 mingw-w64-headers/include/winnt.h | 6 ++ 2 files changed, 14 insertions(+) diff --git a/mingw-w64-headers/c

[Mingw-w64-public] [PATCH v3] headers: Implement __debugbreak, MemoryBarrier and YieldProcessor for armv7 and aarch64

2021-01-19 Thread Martin Storsjö
Signed-off-by: Martin Storsjö --- Added memory clobbers for YieldProcessor(). too. --- mingw-w64-headers/crt/_mingw.h.in | 8 mingw-w64-headers/include/winnt.h | 6 ++ 2 files changed, 14 insertions(+) diff --git a/mingw-w64-headers/crt/_mingw.h.in b/mingw-w64-headers/crt/_mingw.h.

Re: [Mingw-w64-public] [PATCH v2] headers: Implement __debugbreak, MemoryBarrier and YieldProcessor for armv7 and aarch64

2021-01-19 Thread Zebediah Figura (she/her)
On 1/19/21 3:30 PM, Martin Storsjö wrote: > On Tue, 19 Jan 2021, Zebediah Figura wrote: > >> On 1/18/21 11:33 PM, Liu Hao wrote: >>> 在 2021/1/19 上午11:54, Zebediah Figura (she/her) 写道: Do you mean that the writer should change the above code to e.g. "__atomic_load_n(&var, ___ATOMIC_A

Re: [Mingw-w64-public] [PATCH v2] headers: Implement __debugbreak, MemoryBarrier and YieldProcessor for armv7 and aarch64

2021-01-19 Thread Martin Storsjö
On Tue, 19 Jan 2021, Zebediah Figura wrote: On 1/18/21 11:33 PM, Liu Hao wrote: 在 2021/1/19 上午11:54, Zebediah Figura (she/her) 写道: Do you mean that the writer should change the above code to e.g. "__atomic_load_n(&var, ___ATOMIC_ACQUIRE)", or that the read already implies acquire semantics? I

Re: [Mingw-w64-public] Building gcc-10 against mingw-w64-8.0.0: error: unknown conversion type character 'l' in format

2021-01-19 Thread Sandro Mani
On 19.01.21 16:06, Biswapriyo Nath wrote: Would you like to test if the following patch works? * File name: 0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch * Link: https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-gcc/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch

Re: [Mingw-w64-public] [PATCH v2] headers: Implement __debugbreak, MemoryBarrier and YieldProcessor for armv7 and aarch64

2021-01-19 Thread Zebediah Figura
On 1/18/21 11:33 PM, Liu Hao wrote: > 在 2021/1/19 上午11:54, Zebediah Figura (she/her) 写道: >> >> Do you mean that the writer should change the above code to e.g. >> "__atomic_load_n(&var, ___ATOMIC_ACQUIRE)", or that the read already >> implies acquire semantics? I didn't think that the latter was tr

Re: [Mingw-w64-public] Building gcc-10 against mingw-w64-8.0.0: error: unknown conversion type character 'l' in format

2021-01-19 Thread Liu Hao
在 2021-01-19 22:16, Sandro Mani 写道: Hi Tryting to build gcc-10 against mingw-w64-8.0.0, when compiling libgomp it errors out with [1] (...) -Werror is passed when compiling libgomp (as it generally is in gcc throughout), so this causes the build to fail. I'm unsure which is the correct appro

Re: [Mingw-w64-public] Building gcc-10 against mingw-w64-8.0.0: error: unknown conversion type character 'l' in format

2021-01-19 Thread Biswapriyo Nath
Would you like to test if the following patch works? * File name: 0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch * Link: https://github.com/msys2/MINGW-packages/blob/master/mingw-w64-gcc/0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch ArchLinux also uses that patch file. Link htt

[Mingw-w64-public] Building gcc-10 against mingw-w64-8.0.0: error: unknown conversion type character 'l' in format

2021-01-19 Thread Sandro Mani
Hi Tryting to build gcc-10 against mingw-w64-8.0.0, when compiling libgomp it errors out with [1] In file included from ../../../libgomp/oacc-parallel.c:30: ../../../libgomp/oacc-parallel.c: In function 'GOACC_parallel_keyed': ../../../libgomp/oacc-parallel.c:122:18: error: unknown conversion