Re: [fpc-devel] Memory leak on BeginThread() when RTL compiled with -O2

2021-05-25 Thread Jonas Maebe via fpc-devel
On 25/05/2021 18:08, Yuriy Sydorov via fpc-devel wrote: > I've double checked this and the mode change seems to work fine. > The source of the issue is that specifying -Mfpc enables inlining which > triggers a bug in the Windows RTL. > I've fixed the bug in r49400. Thanks! Jonas

Re: [fpc-devel] Memory leak on BeginThread() when RTL compiled with -O2

2021-05-25 Thread Yuriy Sydorov via fpc-devel
On 24.05.2021 23:16, Jonas Maebe via fpc-devel wrote: On 24/05/2021 12:18, Yuriy Sydorov via fpc-devel wrote: You can't first pass the -Mdelphi switch and then override it with -Mfpc. -Mdelphi implicitly enables lot of other compiler options which are not reverted by -Mfpc. That feels like a