Re: [fpc-devel] calling convention on mac

2012-11-29 Thread Carlo Kok
Op 28-11-2012 22:15, Jonas Maebe schreef: On 28 Nov 2012, at 22:04, Carlo Ko wrote: Op 28-11-2012 21:50, Jonas Maebe schreef: On 28 Nov 2012, at 21:36, Martin wrote: It does not matter if I compile it with stdcall, cdecl, pascal. The below on a 32 bit intel mac (fpc 2.6.0) always returns

Re: [fpc-devel] calling convention on mac

2012-11-29 Thread Jonas Maebe
On 28 Nov 2012, at 22:23, Carlo Kok wrote: The constructor call abi was changed twice (1 or 2 years ago), the last change undid the first. I don't remember that one. Was that across released FPC versions? That said, yes, you are right, bugs should be fixed. I'd just like to be able to

[fpc-devel] calling convention on mac

2012-11-28 Thread Martin
It does not matter if I compile it with stdcall, cdecl, pascal. The below on a 32 bit intel mac (fpc 2.6.0) always returns result in 2 registers (eax, edx) Is there a way to change this (some declaration in the source, some switch)? function Point(AX, AY: Integer): TPoint; begin with Result

Re: [fpc-devel] calling convention on mac

2012-11-28 Thread Jonas Maebe
On 28 Nov 2012, at 21:36, Martin wrote: It does not matter if I compile it with stdcall, cdecl, pascal. The below on a 32 bit intel mac (fpc 2.6.0) always returns result in 2 registers (eax, edx) Is there a way to change this (some declaration in the source, some switch)? It's a bug

Re: [fpc-devel] calling convention on mac

2012-11-28 Thread Carlo Ko
Op 28-11-2012 21:50, Jonas Maebe schreef: On 28 Nov 2012, at 21:36, Martin wrote: It does not matter if I compile it with stdcall, cdecl, pascal. The below on a 32 bit intel mac (fpc 2.6.0) always returns result in 2 registers (eax, edx) Is there a way to change this (some declaration in

Re: [fpc-devel] calling convention on mac

2012-11-28 Thread Jonas Maebe
On 28 Nov 2012, at 22:04, Carlo Ko wrote: Op 28-11-2012 21:50, Jonas Maebe schreef: On 28 Nov 2012, at 21:36, Martin wrote: It does not matter if I compile it with stdcall, cdecl, pascal. The below on a 32 bit intel mac (fpc 2.6.0) always returns result in 2 registers (eax, edx) Is