[Mingw-w64-public] [PATCH 07/10] crt: Fix mingw-w64 emulation of POSIX stat* functions

2025-03-25 Thread Pali Rohár
POSIX struct stat has 4 variants in mingw-w64 based on the _FILE_OFFSET_BITS and _USE_32BIT_TIME_T settings. st_size can be either 32-bit or 64-bit, and st_atime/st_mtime/st_ctime can also be 32-bit or 64-bit. So for each ABI of struct stat there has to be separate POSIX stat function which correc

Re: [Mingw-w64-public] mingw-w64 new compile warning: initialized and declared extern

2025-03-25 Thread LIU Hao
在 2025-3-26 05:13, Pali Rohár 写道: On Thursday 20 March 2025 20:38:57 Pali Rohár wrote: Hello, I started getting new compile warnings during compilation of mingw-w64 runtime. In file included from math/modfl.c:6: .../mingw-w64-headers/crt/fenv.h:64:39: warning: ‘__mingw_fe_dfl_env’ initialized

Re: [Mingw-w64-public] [PATCH] Add `-mno-outline-atomics` to `CFLAGS`` when building `mingw-w64-crt` and `mingw-w64-libraries/winpthreads` for `aarch64-*`

2025-03-25 Thread LIU Hao
在 2025-3-26 03:48, Radek Barton via Mingw-w64-public 写道: diff --git a/mingw-w64-libraries/winpthreads/configure.ac b/mingw-w64-libraries/winpthreads/configure.ac index 47be2d6cc..22f7852b3 100644 --- a/mingw-w64-libraries/winpthreads/configure.ac +++ b/mingw-w64-libraries/winpthreads/configure.a

[Mingw-w64-public] [PATCH 00/10] Fix stat functions

2025-03-25 Thread Pali Rohár
This patch series is fixing stat functions as was discussed in the long email thread "stat, _stat, and _stat64i32 issues (was: dirent changes)". I have not included in this patch series Lasse's followup changes. Pali Rohár (10): crt: Provide emulation of _fstat64, _stat64 and _wstat64 functions

Re: [Mingw-w64-public] mingw-w64 new compile warning: initialized and declared extern

2025-03-25 Thread Pali Rohár
On Thursday 20 March 2025 20:38:57 Pali Rohár wrote: > Hello, I started getting new compile warnings during compilation of > mingw-w64 runtime. > > In file included from math/modfl.c:6: > .../mingw-w64-headers/crt/fenv.h:64:39: warning: ‘__mingw_fe_dfl_env’ > initialized and declared ‘extern’ >

[Mingw-w64-public] [PATCH] Add `-mno-outline-atomics` to `CFLAGS`` when building `mingw-w64-crt` and `mingw-w64-libraries/winpthreads` for `aarch64-*`

2025-03-25 Thread Radek Barton via Mingw-w64-public
As a follow up to the first patch "[PATCH] Add check if `libgcc` is available and link `winpthreads` against it instead of `fakelib`" I am sending another possibility how to overcome the undefined references of to outline atomics LSE intrinsic functions for `aarch64-w64-mingw32` GCC build that a