[Issue 9931] Mac OS X ABI not followed when returning structs for extern (C)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 23 23:30:52 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9931



--- Comment #20 from Jacob Carlborg <doob at me.com> 2013-04-23 23:30:49 PDT ---
(In reply to comment #19)

> It doesn't do anything wrong, it just sets EAX to contain the hidden pointer
> before returning. This is required by the SysV IA-32 ABI but apparently not on
> OSX.

First, Mac OS X uses a modified version of the SysV IA-32 ABI (there's a link a
couple of posts up). Second, If an extern (C) function doesn't behave the same
as a C function, in regards to ABI and calling conventions, I would say that
the compiler is doing something wrong.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list