Re: [Mingw-w64-public] [PATCH 3/3] crt: Use aarch64 assembly for _byteswap_* functions on ARM64EC.

2025-03-12 Thread LIU Hao
在 2025-3-12 20:42, Jacek Caban 写道: From: Billy Laws --- mingw-w64-crt/misc/winbs_uint64.c | 2 +- mingw-w64-crt/misc/winbs_ulong.c | 5 +++-- mingw-w64-crt/misc/winbs_ushort.c | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) Can we use `__builtin_bswap{16,32,64}` in these fil

[Mingw-w64-public] [PATCH] crt: Remove target checks from math/arm-common/* files.

2025-03-12 Thread Jacek Caban
These files are already in a target-specific directory, and it's the build system's job to include them only for applicable targets. This also allows their use for ARM64EC. --- mingw-w64-crt/math/arm-common/acoshl.c | 4 mingw-w64-crt/math/arm-common/asinhl.c | 4 mingw-w64-crt/

[Mingw-w64-public] [PATCH 2/3] crt: Use aarch64 assembly for mingw_getsp implementation on ARM64EC.

2025-03-12 Thread Jacek Caban
From: Billy Laws --- mingw-w64-crt/misc/mingw_getsp.S | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mingw-w64-crt/misc/mingw_getsp.S b/mingw-w64-crt/misc/mingw_getsp.S index 1e83b7383..08dfc37e1 100644 --- a/mingw-w64-crt/misc/mingw_getsp.S +++ b/mingw-w64-crt/misc/

Re: [Mingw-w64-public] stat, _stat, and _stat64i32 issues (was: dirent changes)

2025-03-12 Thread Lasse Collin
On 2025-03-09 Pali Rohár wrote: > On Friday 07 March 2025 20:31:09 Lasse Collin wrote: > > The commit 45bf2cca702b from 2009 added memset calls to zero the > > stat buffer on failure. That seems unncessary, but the commit > > message says it fixed something with binutils/bfd. I see you > > removed

[Mingw-w64-public] [PATCH 1/3] crt: Don't use __stosb for RtlSecureZeroMemory implementation on ARM64EC.

2025-03-12 Thread Jacek Caban
From: Billy Laws --- mingw-w64-crt/intrincs/RtlSecureZeroMemory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mingw-w64-crt/intrincs/RtlSecureZeroMemory.c b/mingw-w64-crt/intrincs/RtlSecureZeroMemory.c index 8255a1e23..a5819037e 100644 --- a/mingw-w64-crt/intrincs/RtlSec

Re: [Mingw-w64-public] [PATCH] headers: Use selectany fenv_t pointers for FE_*_ENV macros.

2025-03-12 Thread Martin Storsjö
On Tue, 11 Mar 2025, Jacek Caban wrote: Instead of pseudo-pointers. This changes ABI. --- mingw-w64-crt/misc/fesetenv.c | 32 --- mingw-w64-headers/crt/fenv.h | 41 --- 2 files changed, 19 insertions(+), 54 deletions(-) diff --git a/mingw-w

[Mingw-w64-public] [PATCH 3/3] crt: Use aarch64 assembly for _byteswap_* functions on ARM64EC.

2025-03-12 Thread Jacek Caban
From: Billy Laws --- mingw-w64-crt/misc/winbs_uint64.c | 2 +- mingw-w64-crt/misc/winbs_ulong.c | 5 +++-- mingw-w64-crt/misc/winbs_ushort.c | 5 +++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/mingw-w64-crt/misc/winbs_uint64.c b/mingw-w64-crt/misc/winbs_uint64.c index c0b

Re: [Mingw-w64-public] [PATCH] crt: Remove target checks from math/arm-common/* files.

2025-03-12 Thread Martin Storsjö
On Wed, 12 Mar 2025, Jacek Caban wrote: These files are already in a target-specific directory, and it's the build system's job to include them only for applicable targets. This also allows their use for ARM64EC. --- mingw-w64-crt/math/arm-common/acoshl.c | 4 mingw-w64-crt/math/arm-com