[Mingw-w64-public] [PATCH 1/4] crt: Do not define hypot symbol alias for UCRT builds

2025-03-11 Thread Pali Rohár
UCRT provides native hypot symbol. It is already defined in ucrtbase-common.def.in file. --- mingw-w64-crt/def-include/crt-aliases.def.in | 4 1 file changed, 4 insertions(+) diff --git a/mingw-w64-crt/def-include/crt-aliases.def.in b/mingw-w64-crt/def-include/crt-aliases.def.in index be87

Re: [Mingw-w64-public] How would one create a 'Load Configuration' PE directory entry in MinGW/gcc executables?

2025-03-11 Thread LIU Hao
在 2025-3-4 19:13, Pete Batard 写道: Hi Hao, Thanks for replying to this query. I'm afraid that I simply don't have the scope to go through a binutils change request. I was hoping that a link script might work to inject the binary section manually. If it is simply not possible for GNU binutils t

Re: [Mingw-w64-public] [PATCH v2 1/2] crt: Don't use FE_* constants in truncl.

2025-03-11 Thread Martin Storsjö
On Wed, 5 Mar 2025, Jacek Caban wrote: --- mingw-w64-crt/math/truncl.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mingw-w64-crt/math/truncl.c b/mingw-w64-crt/math/truncl.c index 3b47e53d1..d1b296661 100644 --- a/mingw-w64-crt/math/truncl.c +++ b/mingw-w64-crt/math/tr

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

2025-03-11 Thread Jacek Caban
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-w64-crt/misc/fesetenv.c b/mingw-w64-crt/m

Re: [Mingw-w64-public] [PATCH v2 2/2] fenv: Use MSVC-compatible ABI for fenv.h functions.

2025-03-11 Thread Martin Storsjö
On Mon, 10 Mar 2025, Jacek Caban wrote: On 10.03.2025 14:48, Martin Storsjö wrote: On Wed, 5 Mar 2025, Jacek Caban wrote: Based on Wine code by Piotr Caban and Alexandre Julliard, who granted permission to use it under the mingw-w64 license. Unlike earlier versions, msvcr120 and UCRT implem

[Mingw-w64-public] [PATCH] headers: Import mpeg2data.idl from wine

2025-03-11 Thread Biswapriyo Nath
From 4e5599f7896d33264c9e29ad184b314cfd1d0951 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Tue, 11 Mar 2025 05:19:50 + Subject: [PATCH] headers: Import mpeg2data.idl from wine Required for https://code.videolan.org/videolan/vlc/-/commit/e68f089d5419c7832c625f535f9ec79d62a1c624 Sign

Re: [Mingw-w64-public] [PATCH] crt: Restore ftime symbol also for UCRT builds

2025-03-11 Thread Martin Storsjö
On Tue, 4 Mar 2025, Pali Rohár wrote: Fixes commit ee481ee9392c ("crt: Move ftime symbol definition from _ftime.c to crt-aliases.def.in"). It added ftime symbol only to crt-aliases.def.in which is not used by api-ms-win-crt-* def files for UCRT builds. --- mingw-w64-crt/lib-common/api-ms-win-crt

[Mingw-w64-public] [PATCH 4/4] crt: api-ms-win-crt-private-l1-1-0.def.in: Add new VC++ 2015 14.0.23506.0 symbols

2025-03-11 Thread Pali Rohár
These symbols are already defined in the ucrtbase.def.in file. --- .../api-ms-win-crt-private-l1-1-0.def.in | 30 +++ 1 file changed, 30 insertions(+) diff --git a/mingw-w64-crt/lib-common/api-ms-win-crt-private-l1-1-0.def.in b/mingw-w64-crt/lib-common/api-ms-win-crt-private

Re: [Mingw-w64-public] [PATCH v3 2/2] fenv: Use MSVC-compatible ABI for fenv.h functions.

2025-03-11 Thread Jacek Caban
On 11.03.2025 13:23, Martin Storsjö wrote: On Tue, 11 Mar 2025, Jacek Caban wrote: Since the current mingw-w64 uses a different layout for fenv_t and constant values, this changes the ABI. Based on Wine code by Piotr Caban Alexandre Julliard and Martin Storsjö, who granted permission to use

Re: [Mingw-w64-public] [PATCH] headers: Remove trailing commas from enumerator lists and initializer lists

2025-03-11 Thread Martin Storsjö
On Fri, 28 Feb 2025, LIU Hao wrote: Except the first hunk for wiadef.h, all changes seem to be enumerator lists, and none of these files seem to be generated, which can be examined with git show --color-words=. git log $(git show --numstat | grep -Eo 'include/.*$') Ok // Martin

Re: [Mingw-w64-public] [PATCH 1/3] headers: Treat __MSVCRT_VERSION__=0x600 as compiling for msvcrt.dll ABI

2025-03-11 Thread LIU Hao
在 2025-3-11 21:01, Martin Storsjö 写道: Did anything more come out of this? The change that we did is disruptive, at least for some users. I think there wasn't any opposition to switching to 0x6ff instead of 0x600, for the msvcrt.dll case, which at least should avoid some cases of surprises, eve

Re: [Mingw-w64-public] [PATCH 1/3] headers: Treat __MSVCRT_VERSION__=0x600 as compiling for msvcrt.dll ABI

2025-03-11 Thread Martin Storsjö
On Thu, 2 Jan 2025, Pali Rohár wrote: I see. But if we change the default value again then it would be necessary to updates also mingw-w64 headers with new check for system msvcrt.dll value. Something what I wrote above (just first two cases). Yes - we could change that in any case, to allow a

Re: [Mingw-w64-public] [PATCH] headers: Remove trailing commas from enumerator lists and initializer lists

2025-03-11 Thread LIU Hao
在 2025-3-11 20:38, Martin Storsjö 写道: On Fri, 28 Feb 2025, LIU Hao wrote: Except the first hunk for wiadef.h, all changes seem to be enumerator lists, and none of these files seem to be generated, which can be examined with   git show --color-words=.   git log $(git show --numstat | grep -Eo

Re: [Mingw-w64-public] [PATCH] headers: Define `__MINGW_ATTRIB_DEPRECATED_SEC_WARN` properly for C

2025-03-11 Thread Martin Storsjö
On Sat, 1 Mar 2025, LIU Hao wrote: -- Ok // Martin ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Re: [Mingw-w64-public] [PATCH v2 1/2] crt: Remove @ stdcall mangling when processing lib-common/*.def.in files for non-I386 builds

2025-03-11 Thread Martin Storsjö
On Sun, 16 Feb 2025, Pali Rohár wrote: This allows to define in lib-common/*.def.in files symbols with I386 stdcall @ suffixes and therefore have one common def file for all platforms. Removal of @ suffixes is done by following sed regex: sed -E 's/^([^ ]+)@[0-9]+( |$)/\1\2/' Note that dol

Re: [Mingw-w64-public] [PATCH v3 2/2] fenv: Use MSVC-compatible ABI for fenv.h functions.

2025-03-11 Thread Martin Storsjö
On Tue, 11 Mar 2025, Jacek Caban wrote: Since the current mingw-w64 uses a different layout for fenv_t and constant values, this changes the ABI. Based on Wine code by Piotr Caban Alexandre Julliard and Martin Storsjö, who granted permission to use it under the mingw-w64 license. Unlike earlie

Re: [Mingw-w64-public] [PATCH] headers: Import mpeg2data.idl from wine

2025-03-11 Thread LIU Hao
在 2025-3-11 13:22, Biswapriyo Nath 写道: From 4e5599f7896d33264c9e29ad184b314cfd1d0951 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Tue, 11 Mar 2025 05:19:50 + Subject: [PATCH] headers: Import mpeg2data.idl from wine Required forhttps://code.videolan.org/videolan/vlc/-/commit/e68f089