[Issue 5264] x86_64 changes for druntime 2
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Nov 23 23:16:37 PST 2010
http://d.puremagic.com/issues/show_bug.cgi?id=5264
Brad Roberts <braddr at puremagic.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
AssignedTo|sean at invisibleduck.org |braddr at puremagic.com
--- Comment #1 from Brad Roberts <braddr at puremagic.com> 2010-11-23 23:15:13 PST ---
Ok, for #2, I think the right answer is to change _d_arrayappendcT to this:
extern (C) void[] _d_arrayappendcT(TypeInfo ti, Array *x, ...)
{
version(X86)
{
byte *argp = cast(byte*)(&ti + 2);
return _d_arrayappendT(ti, x, argp[0..1]);
}
else version(X86_64)
{
va_list ap;
va_start(ap, __va_argsave);
byte[] argp;
va_arg(ap, ti.next, argp);
return _d_arrayappendT(ti, x, argp);
}
else
static assert(false, "unknown version");
}
Builds at least, but can't test it yet.
--
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