[fpc-devel] Need patch for bugs : 0011503 / 0009472

Boian Mitov mitov at mitov.com
Fri Jun 20 23:58:10 CEST 2008


    Hi Peter,

Thank you!
So far it works just great. Can we hope for a separated switch for this 
specific "optimization" ;-) . I am running 2.2.2 now.

  With best regards,
    Boian Mitov

--------------------------------------------------------------------
Mitov Software
http://www.mitov.com
--------------------------------------------------------------------


----- Original Message ----- 
From: "Peter Vreman" <peter at freepascal.org>
To: "FPC developers' list" <fpc-devel at lists.freepascal.org>
Sent: Friday, June 20, 2008 2:42 PM
Subject: Re: [fpc-devel] Need patch for bugs : 0011503 / 0009472


>>>> The behaviour you are counting on is a side effect of an optimisation, 
>>>> not a behaviour by design.
>>>
>>> Oh, btw: fpc 2.2.2rc1 behaves with -O2 like delphi :) Without -O2 like 
>>> 2.2.0 :)
>>
>> Add: I just realized that Peter implemented this some time ago in a "in 
>> most cases" (!) delphi compatible behaviour.
>
> My refactoring and optimization of the function return assignment handling 
> is only available in 2.3.1. The change is too intrusive to backport it to 
> 2.2.x.
>
> Peter
> _______________________________________________
> fpc-devel maillist  -  fpc-devel at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel 




More information about the fpc-devel mailing list