Re: [Mingw-w64-public] Deduplicate lib32 and lib-common def files

2025-07-20 Thread Pali Rohár
On Saturday 28 June 2025 16:20:46 LIU Hao wrote: > 在 2025-6-28 05:12, Pali Rohár 写道: > > > > So is the idea of deduplicating lib32 and lib-common def files > > abandoned? Or is there still any interest to do it? > > I'm rather neutral about this change; as explained earlier I'd prefer > keeping t

Re: [Mingw-w64-public] Deduplicate lib32 and lib-common def files

2025-07-20 Thread Pali Rohár
On Saturday 31 May 2025 21:09:27 LIU Hao wrote: > 在 2025-5-31 20:26, Pali Rohár 写道: > > Some of them are documented as PRIVATE in MS linker documentation: > > https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-warning-lnk4104 > > https://learn.microsoft.com/en-us/cpp/erro

Re: [Mingw-w64-public] [PATCH 1/2] crt: Fix LTO -Ofast compilation

2025-07-20 Thread Pali Rohár
On Thursday 17 July 2025 22:08:41 Pali Rohár wrote: > When mingw-w64 is compiled with LTO support (-flto and -ffat-lto-objects in > CFLAGS and LDFLAGS) then compiling any application with -Ofast fails. > > Calling "gcc -flto -Ofast" throws fatal error: > > `___main' referenced in section `.te

Re: [Mingw-w64-public] [PATCH 2/2] crt: Fix LTO compile warning for main and wmain functions

2025-07-20 Thread Pali Rohár
On Saturday 19 July 2025 22:14:15 LIU Hao wrote: > 在 2025-7-18 04:08, Pali Rohár 写道: > > Function main is somehow special that it can take from zero to three > > parameters. So define it in internal.h file without parameters. This will > > mute the gcc LTO warning which is printed by default. > >

Re: [Mingw-w64-public] [PATCH 2/2] crt: Fix LTO compile warning for main and wmain functions

2025-07-20 Thread Pali Rohár
On Thursday 17 July 2025 23:32:50 Martin Storsjö wrote: > On Thu, 17 Jul 2025, Pali Rohár wrote: > > > When mingw-w64 is compiled with LTO support (-flto and -ffat-lto-objects in > > CFLAGS and LDFLAGS) then simple C application > > > >int main(void) { return 0; } > > > > cause LTO compile w