On 20.06.2020 16:17, Florian Klämpfl wrote:
Am 20.06.20 um 15:04 schrieb Jonas Maebe:
On 20/06/2020 14:59, Yuriy Sydorov wrote:
Maybe implement this in a clean way by adding a new generic optimization
cs_opt_hiddenpara?
Maybe cs_opt_unusedpara. It doesn't have to be limited to hidden parameters.
IMO there is even nothing wrong to have a completely separate switch like
cs_opt_unusedparentfp.
I've added the generic cs_opt_unused_para optimization option.
In future, if needed, more fine-grained related options can be introduced.
So now the parentfp optimization is enabled for -O2 and higher.
Yuriy.
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel