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

2021-01-11 Thread NetSpirit via fpc-devel
I am using custom build of minimal FPC RTL and found possible bug. When unit 'system' (or some other?) compiled using -O2 (or higher) option in 'fpc.cfg', then application, compiled using this unit, increase memory usage every time BeginThread() function is called. This appears on FPC 3.2.0 and not

Re: [fpc-devel] Error: Global Generic template references static symtable

2021-01-11 Thread Sven Barth via fpc-devel
Bart via fpc-devel schrieb am Mo., 11. Jan. 2021, 03:42: > On Sun, Jan 10, 2021 at 11:59 AM Sven Barth via fpc-devel > wrote: > > > Displaying the message at the correct location would be more involved... > > you might want to open a bug report for that so that it's remembered > > somewhere, but

[fpc-devel] ROL/ROR with Carry

2021-01-11 Thread Sven Barth via fpc-devel
Hello together! Considering that jamie philbrook has given up on his feature request ( https://bugs.freepascal.org/view.php?id=38341 ) rather quickly and that it had been my idea for him to open that bug report I'd like to discuss this here. So the idea is to add support for ROL/ROR with Car

Re: [fpc-devel] ROL/ROR with Carry

2021-01-11 Thread Karoly Balogh via fpc-devel
Hi, On Mon, 11 Jan 2021, Sven Barth via fpc-devel wrote: > So the idea is to add support for ROL/ROR with Carry support as the > current Rol*/Ror* functions don't support that. Florian then said that > he's open to suggestions under some restrictions. Considering that the > current Rol*/Ror* intr

Re: [fpc-devel] ROL/ROR with Carry

2021-01-11 Thread J. Gareth Moreton via fpc-devel
I do agree that populating the carry bit is not that straightforward, especially on processors that don't have an explicit carry. An alternative approach is to go for something similar to the SHRD instruction, that pulls in bits from another register rather than the carry bit - https://www.fel

Re: [fpc-devel] ROL/ROR with Carry

2021-01-11 Thread Florian Klämpfl via fpc-devel
Am 11.01.21 um 19:10 schrieb Sven Barth via fpc-devel: Hello together! Considering that jamie philbrook has given up on his feature request ( https://bugs.freepascal.org/view.php?id=38341 ) rather quickly and that it had been my idea for him to open that bug report I'd like to discuss this he