Re: [PATCH] Fix MinGW option -mcrtdll=

2024-07-05 Thread Pali Rohár
On Monday 24 June 2024 10:03:26 Jonathan Yong wrote: > On 6/23/24 16:40, Pali Rohár wrote: > > Add missing msvcr40* and msvcrtd* cases to CPP_SPEC and > > document missing _UCRT macro and msvcr71* case. > > > > Fixes commit 453cb585f0f8673a5d69d1b420ffd4b3f53aca00.

[PATCH] Fix MinGW option -mcrtdll=

2024-06-23 Thread Pali Rohár
Add missing msvcr40* and msvcrtd* cases to CPP_SPEC and document missing _UCRT macro and msvcr71* case. Fixes commit 453cb585f0f8673a5d69d1b420ffd4b3f53aca00. gcc/ * config/i386/mingw-w64.h (CPP_SPEC): Add missing -mcrtdll= cases: msvcr40*, msvcrtd*. * config/mingw/mingw32.h (CPP_S

[PATCH v2] Add MinGW option -mcrtdll= for choosing C RunTime DLL library

2023-06-14 Thread Pali Rohár via Gcc-patches
It adjust preprocess, compile and link flags, which allows to change default -lmsvcrt library by another provided by MinGW runtime. gcc/ * config/i386/mingw-w64.h (CPP_SPEC): Adjust for -mcrtdll=. (REAL_LIBGCC_SPEC): New define. * config/i386/mingw.opt: Add mcrtdll= * config/i3

Re: [PATCH] Add MinGW option -mcrtdll= for choosing C RunTime DLL library

2023-06-12 Thread Pali Rohár via Gcc-patches
On Monday 12 June 2023 23:13:00 Jonathan Yong wrote: > On 6/12/23 01:26, LIU Hao wrote: > > 在 2023/6/12 07:08, Jonathan Yong 写道: > > > +preprocessor is done. MinGW import library @code{msvcrt} is just a > > > +symlink (or file copy) to the other MinGW CRT import library > > > > I suggest a change

[PATCH] Add MinGW option -mcrtdll= for choosing C RunTime DLL library

2023-05-27 Thread Pali Rohár via Gcc-patches
It adjust preprocess, compile and link flags, which allows to change default -lmsvcrt library by another provided by MinGW runtime. gcc/ * config/i386/mingw-w64.h (CPP_SPEC): Adjust for -mcrtdll=. (REAL_LIBGCC_SPEC): New define. * config/i386/mingw.opt: Add mcrtdll= * config/i3

Re: [PATCH] Show dangerous warning when -Werror option is used

2018-04-01 Thread Pali Rohár
On Sunday 01 April 2018 17:05:13 David Malcolm wrote: > On Sun, 2018-04-01 at 22:40 +0200, Pali Rohár wrote: > > On Sunday 01 April 2018 14:32:26 Segher Boessenkool wrote: > > > On Sun, Apr 01, 2018 at 12:05:40PM +0200, Pali Rohár wrote: > > > > Command line option -W

Re: [PATCH] Show dangerous warning when -Werror option is used

2018-04-01 Thread Pali Rohár
On Sunday 01 April 2018 14:32:26 Segher Boessenkool wrote: > On Sun, Apr 01, 2018 at 12:05:40PM +0200, Pali Rohár wrote: > > Command line option -Werror is dangerous as it could cause problems for > > compiling applications in future. Once gcc introduces a new warning or >

[PATCH] Show dangerous warning when -Werror option is used

2018-04-01 Thread Pali Rohár
makes applications not compilable. -Werror makes sense only for specific gcc versions against which was application tested to compile correctly. Attached patch adds a new warning when -Werror command line option is enabled. It warns user that usage of -Werror can be dangerous. -- Pali Rohár pali.ro