Re: [Mingw-w64-public] [PATCH] winpthreads: Avoid using MemoryBarrier() in public headers with GCC/Clang

2024-04-23 Thread LIU Hao
在 2024-04-24 00:18, Antonin Décimo 写道: I couldn't find the difference between MemoryBarrier and _ReadWriteBarrier. Maybe the MemoryBarrier macro is available on more architectures than _ReadWriteBarrier which is only documented for x86 and x64? `MemoryBarrier()` is a macro defined in 'winnt.h'.

Re: [Mingw-w64-public] [PATCH] winpthreads: Avoid using MemoryBarrier() in public headers with GCC/Clang

2024-04-23 Thread Antonin Décimo
> Liu Hao also pointed out that we could use _ReadWriteBarrier() with MSVC, > and that one doesn't seem to require including any header before it is > usable. I couldn't find the difference between MemoryBarrier and _ReadWriteBarrier. Maybe the MemoryBarrier macro is available on more architecture

Re: [Mingw-w64-public] Rust test failure after some math functions were moved

2024-04-23 Thread Jacek Caban
On 23.04.2024 13:39, Martin Storsjö wrote: On Tue, 16 Apr 2024, Jacek Caban wrote: But in this particular case, I think we may improve things on mingw-w64-crt side and move __sinl_internal to msvcr* importlibs. Something like the attached (untested) patch should help. Unfortunately, we can't

Re: [Mingw-w64-public] Rust test failure after some math functions were moved

2024-04-23 Thread Martin Storsjö
On Tue, 16 Apr 2024, Jacek Caban wrote: But in this particular case, I think we may improve things on mingw-w64-crt side and move __sinl_internal to msvcr* importlibs. Something like the attached (untested) patch should help. Unfortunately, we can't really do this; __sinl_internal and __cosl

Re: [Mingw-w64-public] [PATCH] winpthreads: Avoid using MemoryBarrier() in public headers with GCC/Clang

2024-04-23 Thread Martin Storsjö
On Tue, 23 Apr 2024, Martin Storsjö wrote: Commit f281f4969d332efc842b93da892c2e97084e403e changed pthread_cleanup_push() to use MemoryBarrier() instead of __sync_synchronize(), for various reasons - one of them being able to build winpthreads with MSVC. Unfortunately, this change had the effec

[Mingw-w64-public] [PATCH] winpthreads: Avoid using MemoryBarrier() in public headers with GCC/Clang

2024-04-23 Thread Martin Storsjö
Commit f281f4969d332efc842b93da892c2e97084e403e changed pthread_cleanup_push() to use MemoryBarrier() instead of __sync_synchronize(), for various reasons - one of them being able to build winpthreads with MSVC. Unfortunately, this change had the effect of breaking user code, including winpthreads

[Mingw-w64-public] [PATCH] headers: Add tcpxcv.h

2024-04-23 Thread Biswapriyo Nath
From fe72cdf89cd2d583c3fa4c43406fc08777bc1fe5 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Tue, 23 Apr 2024 07:41:17 + Subject: [PATCH] headers: Add tcpxcv.h Fixes https://github.com/mingw-w64/mingw-w64/issues/46 Signed-off-by: Biswapriyo Nath --- mingw-w64-headers/include/tcpxcv.