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

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Apr 17 05:17:14 PDT 2013


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



--- Comment #16 from Jacob Carlborg <doob at me.com> 2013-04-17 05:17:13 PDT ---
(In reply to comment #14)

> Based on how the codegen changes with adding a temporary variable in linux, it
> should be safe. Disassembly from OS X could confirm that.
> 
> BUT:
> 
> That's only for this particular example, with a particular set of compiler
> setting. It's exactly the sort of thing optimisers mess around with. Personally
> I would not risk it.

I suspected that. The thing is that I'm stuck with a D1 code base. I want to
finished that before I port it to D2. So I'm hoping that a fix for this will be
applied to the D1 branch as well.

Otherwise I guess I'll have to avoid any optimizations until I've ported it to
D2.

-- 
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