Re: [Mingw-w64-public] [PATCH 4/4] crt: Add import library for msvcr71d.dll

2024-05-29 Thread Pali Rohár
On Wednesday 29 May 2024 23:53:26 Martin Storsjö wrote: > On Sun, 26 May 2024, Pali Rohár wrote: > > > msvcr71d.dll is debug version of the msvcr71.dll and provides additional > > debugging functions. > > --- > > mingw-w64-crt/Makefile.am | 6 +- > > mingw-w64-crt/lib32/msvcr71d.def.in

Re: [Mingw-w64-public] [PATCH 4/4] crt: Add import library for msvcr71d.dll

2024-05-29 Thread Martin Storsjö
On Sun, 26 May 2024, Pali Rohár wrote: msvcr71d.dll is debug version of the msvcr71.dll and provides additional debugging functions. --- mingw-w64-crt/Makefile.am | 6 +- mingw-w64-crt/lib32/msvcr71d.def.in | 945 mingw-w64-crt/lib32/msvcr71d.mri| 6 +

Re: [Mingw-w64-public] [PATCH 3/3] crt: Document why the stat symbol alias is not used

2024-05-29 Thread Martin Storsjö
On Sun, 26 May 2024, Pali Rohár wrote: --- mingw-w64-crt/def-include/crt-aliases.def.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) These three patches seem fine to me - I can push them tomorrow or so. // Martin ___ Mingw-w64-public mailin

Re: [Mingw-w64-public] [PATCH 5/5] crt: crtdll.dll and msvcrt10.dll: Fix linking of the WinMain() function

2024-05-29 Thread Pali Rohár
On Wednesday 29 May 2024 16:21:33 Martin Storsjö wrote: > On Sun, 26 May 2024, Pali Rohár wrote: > > > WinMain() entry point defined by the application is called by mingw-w64 > > startup code, more precisely by function main() from crtexewin.c file. > > > > mingw-w64 startup code in file crtexewi

Re: [Mingw-w64-public] [PATCH] crt: Fix definitions of __MINGW_IMP_SYMBOL aliases

2024-05-29 Thread Pali Rohár
On Wednesday 29 May 2024 16:00:06 Martin Storsjö wrote: > On Sun, 26 May 2024, Pali Rohár wrote: > > > GCC documentation for alias attribute for variables says: > > > > https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html > > Using both the alias and the alias target to access the

Re: [Mingw-w64-public] Successfully built cross compiler produces non-working EXE files

2024-05-29 Thread Bob via Mingw-w64-public
Meant to reply here. https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/thread/Nz3uczv--7-9%40tuta.io/#msg58777309 ___ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64

Re: [Mingw-w64-public] Successfully built cross compiler produces non-working EXE files

2024-05-29 Thread Bob via Mingw-w64-public
I did some tests to determine at which stage (compilation, assembly, linking) the faulty toolchain creates invalid output. This C program (hi.c) is what I used for testing:     int main(void) {return 0;} 1. Compilation -- `gcc -S file.c` (successful): With input hi.c, I used the faulty toolchai

Re: [Mingw-w64-public] [PATCH 5/5] crt: crtdll.dll and msvcrt10.dll: Fix linking of the WinMain() function

2024-05-29 Thread Martin Storsjö
On Sun, 26 May 2024, Pali Rohár wrote: WinMain() entry point defined by the application is called by mingw-w64 startup code, more precisely by function main() from crtexewin.c file. mingw-w64 startup code in file crtexewin.c calls _ismbblead() function. Function _ismbblead() is not available in

Re: [Mingw-w64-public] [PATCH] crt: getopt: Use argv[0] from getopt function argument instead from the global __argv[] array

2024-05-29 Thread Martin Storsjö
On Sun, 26 May 2024, Pali Rohár wrote: getopt* functions receive also argv[0] argument. So use it for printing program name instead of the global __argv[0] variable. This avoids using and importing of the __argv[] DATA symbol from the linked CRT library, as it is not needed. --- mingw-w64-crt/m

Re: [Mingw-w64-public] [PATCH] crt: Fix definitions of __MINGW_IMP_SYMBOL aliases

2024-05-29 Thread Martin Storsjö
On Sun, 26 May 2024, Pali Rohár wrote: GCC documentation for alias attribute for variables says: https://gcc.gnu.org/onlinedocs/gcc/Common-Variable-Attributes.html Using both the alias and the alias target to access the same object is undefined in a translation unit without a declaration of

Re: [Mingw-w64-public] [PATCH] crt: Add missing __cdecl decoration for functions: mbrtowc mbsrtowcs mbrlen wcrtomb wcsrtombs

2024-05-29 Thread Martin Storsjö
On Mon, 27 May 2024, Pali Rohár wrote: On Monday 27 May 2024 13:04:56 LIU Hao wrote: 在 2024-05-26 20:39, Pali Rohár 写道: --- mingw-w64-crt/misc/mbrtowc.c | 3 +++ mingw-w64-crt/misc/wcrtomb.c | 5 - 2 files changed, 7 insertions(+), 1 deletion(-) This patch seems harmless. However I

Re: [Mingw-w64-public] Announcing v12.0.0

2024-05-29 Thread Martin Storsjö
On Wed, 29 May 2024, JonY via Mingw-w64-public wrote: v12.0.0 is now released! Important: UCRT is now the default CRT runtime instead of MSVCRT, check the mingw-w64-doc/howto-build/ucrt-vs-msvcrt.txt document for details. Both header set and CRT must be configured and built with the same set