Re: [Mingw-w64-public] 32-bit UCRT time function oddities.

2021-07-19 Thread Jeremy Drake via Mingw-w64-public
On Mon, 19 Jul 2021, Jeremy Drake via Mingw-w64-public wrote: > The next test I debugged was failure of utime. Apparently it's trying to > call _utime64, but with the struct with 32-bit time_ts, and getting > EINVAL. I was struggling to figure out how utime was aliased to _utime64 instead of _ut

Re: [Mingw-w64-public] 32-bit UCRT time function oddities.

2021-07-19 Thread Jeremy Drake via Mingw-w64-public
> The first test I debugged showed that it appears that time_t is 32-bits, > even though I expected it to be 64-bit due to _mingw.h having: > #if defined (_WIN32) && !defined (_WIN64) && !defined > (__MINGW_USE_VC2005_COMPAT) && !defined (_UCRT) > #ifndef _USE_32BIT_TIME_T > #define _USE_32BIT_TIM

Re: [Mingw-w64-public] Patch WS2 Inline Functions

2021-07-19 Thread Jonathan Marler
How's this? On Sun, Jul 18, 2021 at 12:18 AM LIU Hao wrote: > 在 2021-07-13 17:44, Jonathan Marler 写道: > >> Do things work out if you use the existing __mingw_ovr attribute define? > > > > It appears to fix the issue yes. Here's a patch with that solution: > > > > > > Would you please send a new

[Mingw-w64-public] 32-bit UCRT time function oddities.

2021-07-19 Thread Jeremy Drake via Mingw-w64-public
I am working on debugging time-related test failures in perl, when built with i686 clang against mingw-w64 configured for ucrt. https://github.com/msys2/MINGW-packages/issues/9178 The first test I debugged showed that it appears that time_t is 32-bits, even though I expected it to be 64-bit due to

Re: [Mingw-w64-public] [PATCH v3] headers: Implement the _bittest* intrinsics for arm and aarch64

2021-07-19 Thread Martin Storsjö
On Mon, 19 Jul 2021, LIU Hao wrote: 在 7/19/21 4:33 PM, Martin Storsjö 写道: These are non-atomic versions corresponding to the existing _interlockedbittest* - therefore they're implemented as plain C instead of assembly. Additionally, there are plain intrinsics "_bittest" and "_bittest64", where

Re: [Mingw-w64-public] [PATCH v3] headers: Implement the _bittest* intrinsics for arm and aarch64

2021-07-19 Thread LIU Hao
在 7/19/21 4:33 PM, Martin Storsjö 写道: These are non-atomic versions corresponding to the existing _interlockedbittest* - therefore they're implemented as plain C instead of assembly. Additionally, there are plain intrinsics "_bittest" and "_bittest64", where there's no corresponding interlocked v

[Mingw-w64-public] [PATCH v3] headers: Implement the _bittest* intrinsics for arm and aarch64

2021-07-19 Thread Martin Storsjö
These are non-atomic versions corresponding to the existing _interlockedbittest* - therefore they're implemented as plain C instead of assembly. Additionally, there are plain intrinsics "_bittest" and "_bittest64", where there's no corresponding interlocked version. Signed-off-by: Martin Storsjö