[fpc-devel] Const optimization is a serious bug

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Jul 10 23:43:47 CEST 2011


On 10 Jul 2011, at 21:40, Daniƫl Mantione wrote:

> Op Sun, 10 Jul 2011, schreef Chad Berchek:
> 
>> I think we really cannot assume anything about what exactly will happen with regard to the calling convention, which is what I was worried about earlier.
> 
> Within a certain calling convention, the behaviour of const is defined and will not change.

Actually, even that is not true: http://wiki.freepascal.org/User_Changes_Trunk#Const_parameter_passing_on_non-Win64_platforms

const parameters are indeed not suited to assembler routines for that reason.


Jonas


More information about the fpc-devel mailing list