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

Florian Klaempfl florian at freepascal.org
Thu Jun 19 14:21:42 CEST 2008


Jonas Maebe schrieb:
> 
> On 19 Jun 2008, at 13:53, Boian Mitov wrote:
> 
>> This functionality works in all versions of Delphi 5-2007. We support 
>> them all, and we have done so for years. We have no problems to 
>> compile with such optimizations turned off.
> 
> One final time: please read the comments to 
> http://bugs.freepascal.org/view.php?id=9472.
> 
> It's not an optimisation which needs to be turned off. On the contrary, 
> you are depending on a particular optimisation to be performed (namely 
> skipping the use of temporary function results when assigning the result 
> of a function returning an interface to certain classes of local 
> variables). The effects of this behaviour can also be emulated by 
> clearing all temps immediately after their use,

To do this correct, you need however an implicit try ... finally 
statement around the clearing.



More information about the fpc-devel mailing list