[fpc-devel] Wrong assembler generated?
Andrew Haines
AndrewD207 at aol.com
Sat Oct 22 16:30:38 CEST 2011
On 10/22/11 04:14, Jonas Maebe wrote:
>
> On 22 Oct 2011, at 05:20, Andrew Haines wrote:
>
>> I was experimenting with gtk3 a bit and a simple program was failing to
>> execute properly.
>>
>> It's very simple:
>
> It's very difficult. The reason is that you are not showing a complete compilable program including all the declarations of the external functions you are calling and the types you are using. And moreover the two assembler blocks you are showing have been compiled with different optimization levels.
>
>
Sorry, I had tried with several different versions and optimization levels.
I found the problem. g_type_class_ref was declared to return TGTypeClass
instead of PGTypeClass.
My fault.
Regards,
Andrew Haines
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gtkcalliswrong.zip
Type: application/zip
Size: 3385 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20111022/5e9cb446/attachment.zip>
More information about the fpc-devel
mailing list