[Issue 4398] dmd always uses Windows name mangling for _d_throw

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Jun 27 10:53:25 PDT 2010


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



--- Comment #2 from Johannes Pfau <johannespfau at gmail.com> 2010-06-27 10:53:23 PDT ---
Created an attachment (id=679)
Patch for druntime

This is the patch required for druntime.

In /src/rt/deh2.d "void _d_throw(Object *h)" must be extern(Windows) for
windows and extern(C) for all other platforms.

In /src/rt/deh.c "void __stdcall _d_throw(Object *h)" must have __stdcall for
windows and "void _d_throw(Object *h)" for all other platforms.

The other 2 symbols modified in the dmd patch are not used in druntime.

This patch places the whole functions in version blocks. Therefore a lot of
code is duplicated. I guess this could be done in a better way, but I could get
it to work with e.g. alias.

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