[fpc-devel] Strange assembler from 2.7.1
jonas.maebe at elis.ugent.be
Thu Sep 6 23:43:39 CEST 2012
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.
More information about the fpc-devel