[fpc-devel] fpc trunk / parentfp for debugger / missing

Yuriy Sydorov jura at cp-lab.com
Sat Jun 20 14:31:38 CEST 2020


On 20.06.2020 14:38, Jonas Maebe wrote:
> On 20/06/2020 13:15, Yuriy Sydorov wrote:
>> On 20.06.2020 2:04, Martin wrote:
>>> I just updated to fpc trunk 45658
>>>
>>> It seems sometime in the last 3 or 4 month a change was made that
>>> leads to "parentfp" being optimized away.
>>> Even with -O- or -O1 (many users do O1 for debugging)
>>
>> I've turned off optimization of parentfp when -O- in r45661.
> 
> Maybe it can be tied to the -Oostackframe optimisation setting.

Some CPU targets - jvm at least - doesn't support cs_opt_stackframe, but the parentfp optimization applies for any CPU 
target.
The parentfp optimization need to be tied to some generic optimization. cs_opt_remove_empty_proc looks good for this.

Yuriy.


More information about the fpc-devel mailing list