Re: [fpc-pascal] Just out of curiosity: Compiling FPC trunk and fpcmake

2022-03-22 Thread Victor Campillo via fpc-pascal
On 22/3/22 11:09, Karoly Balogh via fpc-pascal wrote: No, it isn't. -O parameters will _enable_ certain optimizations. This means, -O3 -O1 will not switch the compiler "back" to -O1, just stay at -O3, because at -O3 level, all -O1 optimizations are already enabled, there is nothing to enable. -O

Re: [fpc-pascal] Just out of curiosity: Compiling FPC trunk and fpcmake

2022-03-22 Thread Karoly Balogh via fpc-pascal
Hi, On Tue, 22 Mar 2022, Victor Campillo via fpc-pascal wrote: > On 22/3/22 9:51, Mattias Gaertner via fpc-pascal wrote: > > Is this paranoid or useful? > > -O- -O1 > > > Good point. My script have many years and I don't remember why I used this > options or if I gathered them from someone else,

Re: [fpc-pascal] Just out of curiosity: Compiling FPC trunk and fpcmake

2022-03-22 Thread Victor Campillo via fpc-pascal
On 22/3/22 9:51, Mattias Gaertner via fpc-pascal wrote: Is this paranoid or useful? -O- -O1 Good point. My script have many years and I don't remember why I used this options or if I gathered them from someone else, but reviewing it now, it does not seems logical. I suppose -O1 overwrite -O-,

Re: [fpc-pascal] Just out of curiosity: Compiling FPC trunk and fpcmake

2022-03-22 Thread Karoly Balogh via fpc-pascal
Hi, On Tue, 22 Mar 2022, Marco van de Voort via fpc-pascal wrote: > > On 21-3-2022 22:45, Karoly Balogh via fpc-pascal wrote: > > Hi, > > I can reproduce this, or something very similar for the clean/distclean > > targets, if I have no FPC installed on my machine, but I specify PP= as a > > Makef

Re: [fpc-pascal] Just out of curiosity: Compiling FPC trunk and fpcmake

2022-03-22 Thread Marco van de Voort via fpc-pascal
On 21-3-2022 22:45, Karoly Balogh via fpc-pascal wrote: Hi, I can reproduce this, or something very similar for the clean/distclean targets, if I have no FPC installed on my machine, but I specify PP= as a Makefile argument to a "bootstrap" compiler binary, and I use OS_TARGET= as well, for cro

Re: [fpc-pascal] Just out of curiosity: Compiling FPC trunk and fpcmake

2022-03-22 Thread Mattias Gaertner via fpc-pascal
On Tue, 22 Mar 2022 09:31:19 +0100 Victor Campillo via fpc-pascal wrote: >[...] > OPT="-O- -O1 -gl" Is this paranoid or useful? -O- -O1 Mattias ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/l

Re: [fpc-pascal] Just out of curiosity: Compiling FPC trunk and fpcmake

2022-03-22 Thread Victor Campillo via fpc-pascal
Hi, Thank you very much to everyone for the quick answers. If I specify the option PP=.../fpclazarus/fpc/lib/3.2.2/ppcx64 to the command "make -j 9 clean all", the it works as expected. Probably until now, it worked just by pure lucky. But just to make sure my script to build FPC is safer, i