On 06 Sep 2012, at 23:27, Martin wrote:

> Then my next question.
> 
> As indicated, compiling a copy and paste of this code, using the same 
> compiler, it produced asm using eax as pointer to the result.
> 
> Is that possible or allowed? If so how?

By not compiling it for Darwin/i386, or by using a different definition of 
TPoint that is no longer 8 bytes. Anyway, I've committed a fix so that 
darwin/i386 and iphonesim/i386 now behave the same as other platforms as far as 
the function return location is concerned when not using cdecl/cppdecl/mwpascal 
calling conventions.


Jonas   _______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to