Re: [fpc-pascal] 3123 inherited not supported inside inline

2023-06-25 Thread Michael Van Canneyt via fpc-pascal
On Sun, 25 Jun 2023, Hairy Pixels via fpc-pascal wrote: On Jun 24, 2023, at 10:27 PM, Michael Van Canneyt via fpc-pascal wrote: It seems to me no gain is to be had from e.g. inlining a routine of 500+ lines of code. What if the function was only called from 3 places in the program

Re: [fpc-pascal] 3123 inherited not supported inside inline

2023-06-24 Thread Hairy Pixels via fpc-pascal
> On Jun 24, 2023, at 8:37 PM, Sven Barth via fpc-pascal > wrote: > > and thus leading to the necessity to do recompilations which are already not > working that well. Speaking of this, I've been including units in the implementation section and this often totally breaks the compilers

Re: [fpc-pascal] 3123 inherited not supported inside inline

2023-06-24 Thread Hairy Pixels via fpc-pascal
> On Jun 24, 2023, at 10:27 PM, Michael Van Canneyt via fpc-pascal > wrote: > > It seems to me no gain is to be had from e.g. inlining a routine of 500+ lines > of code. What if the function was only called from 3 places in the program and each one of those was in something with very long

Re: [fpc-pascal] 3123 inherited not supported inside inline

2023-06-24 Thread Martin Frb via fpc-pascal
On 24/06/2023 17:21, Hairy Pixels via fpc-pascal wrote: On Jun 24, 2023, at 10:11 PM, Hairy Pixels wrote: Doesn't this mean the compiler can dictate the binary size by inlining everything even if the programmer doesn't want that? and another thing, I have frequent problems with a crash

Re: [fpc-pascal] 3123 inherited not supported inside inline

2023-06-24 Thread Michael Van Canneyt via fpc-pascal
On Sat, 24 Jun 2023, Hairy Pixels via fpc-pascal wrote: On Jun 24, 2023, at 10:11 PM, Hairy Pixels wrote: Doesn't this mean the compiler can dictate the binary size by inlining everything even if the programmer doesn't want that? and another thing, I have frequent problems with a

Re: [fpc-pascal] 3123 inherited not supported inside inline

2023-06-24 Thread Michael Van Canneyt via fpc-pascal
On Sat, 24 Jun 2023, Hairy Pixels via fpc-pascal wrote: On Jun 24, 2023, at 7:18 PM, Michael Van Canneyt via fpc-pascal wrote: According to Florian, inline should not be used to begin with, since the compiler should be able to decide autonomously to inline a routine or not. Doesn't

Re: [fpc-pascal] 3123 inherited not supported inside inline

2023-06-24 Thread Hairy Pixels via fpc-pascal
> On Jun 24, 2023, at 10:11 PM, Hairy Pixels wrote: > > Doesn't this mean the compiler can dictate the binary size by inlining > everything even if the programmer doesn't want that? and another thing, I have frequent problems with a crash which happens in an inlined function and it's now

Re: [fpc-pascal] 3123 inherited not supported inside inline

2023-06-24 Thread Hairy Pixels via fpc-pascal
> On Jun 24, 2023, at 7:18 PM, Michael Van Canneyt via fpc-pascal > wrote: > > According to Florian, inline should not be used to begin with, since the > compiler should be able to decide autonomously to inline a routine or not. Doesn't this mean the compiler can dictate the binary size by

Re: [fpc-pascal] 3123 inherited not supported inside inline

2023-06-24 Thread Michael Van Canneyt via fpc-pascal
On Sat, 24 Jun 2023, Sven Barth via fpc-pascal wrote: Michael Van Canneyt via fpc-pascal schrieb am Sa., 24. Juni 2023, 14:18: On Sat, 24 Jun 2023, Mattias Gaertner via fpc-pascal wrote: Hi, With development fpc I get a lot of messages like: fgl.pp(1112,1) Note: (3123) "inherited"

Re: [fpc-pascal] 3123 inherited not supported inside inline

2023-06-24 Thread Sven Barth via fpc-pascal
Mattias Gaertner via fpc-pascal schrieb am Sa., 24. Juni 2023, 13:12: > Hi, > > With development fpc I get a lot of messages like: > > fgl.pp(1112,1) Note: (3123) "inherited" not yet supported inside inline > procedure/function > > Since most users can't do anything about the fgl inline

Re: [fpc-pascal] 3123 inherited not supported inside inline

2023-06-24 Thread Sven Barth via fpc-pascal
Michael Van Canneyt via fpc-pascal schrieb am Sa., 24. Juni 2023, 14:18: > > > On Sat, 24 Jun 2023, Mattias Gaertner via fpc-pascal wrote: > > > Hi, > > > > With development fpc I get a lot of messages like: > > > > fgl.pp(1112,1) Note: (3123) "inherited" not yet supported inside inline > >

Re: [fpc-pascal] 3123 inherited not supported inside inline

2023-06-24 Thread Michael Van Canneyt via fpc-pascal
On Sat, 24 Jun 2023, Mattias Gaertner via fpc-pascal wrote: Hi, With development fpc I get a lot of messages like: fgl.pp(1112,1) Note: (3123) "inherited" not yet supported inside inline procedure/function Since most users can't do anything about the fgl inline modifier, this message